Hi VB.Net Experts,
Can anyone please provide me with some sample code to verify if text entered into a text box is in the format of 00:00:00.
I assume I should be using Regular Expressions but have never been able to master those.
I need to prompt the user to enter the correct number of minutes if the input is not in the proper time format.
From my research I think I need to use the following to validate the format:
^([0-1]\d|2[0-3])[0-5]\d)([0-5]\d))?$
However I am not sure how to add this to my code. I am working off of the OnClick action for a button and it needs to validate tbPolicyName.Text as the desired format.
Any assistance with sample code is greatly appreciated.
Can anyone please provide me with some sample code to verify if text entered into a text box is in the format of 00:00:00.
I assume I should be using Regular Expressions but have never been able to master those.
I need to prompt the user to enter the correct number of minutes if the input is not in the proper time format.
From my research I think I need to use the following to validate the format:
^([0-1]\d|2[0-3])[0-5]\d)([0-5]\d))?$
However I am not sure how to add this to my code. I am working off of the OnClick action for a button and it needs to validate tbPolicyName.Text as the desired format.
Any assistance with sample code is greatly appreciated.