Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TimeStamp in DataGridView

Status
Not open for further replies.

eb24

Programmer
Dec 17, 2003
240
US
How can I check that what is entered in a TimeStamp cell is in the correct format? I want the format to be in hh:mm.

Thanks for any advice.
 
If you want to check formatting, the most powerful way is to use a Regular Expression (System.RegularExpressions.Regex) and do a Match() on the entered string.

Regex's take some getting used to writing but are extremely powerful.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top