Hi all I m making a project in which i have two textboxes to enter time of Departure and Arrival. The User can enter any string value in a textBox. But i want that user must enter a time format value with am/pm. Is there any component or coding for doing that. Plz guide me. Its urgent

Might want to use ajax with a pop up date time picker and a read only textbox. This way, you can be sure to have a consistent display and parsing of the value.

Depends if its asp or a windows app, if its an app then you could try parsing the text to a time if that fails tell them its not a valid time.

Hi, Why dont consider the MaskedTextBox control ?. This MaskedTextBox gets formatted input from the user