Hello I have a scenario in which i have to allow user to enter time in 12 hours format.eg: 10:20 AM or 10:30 PM.
If User Does'nt enter properly then it should raise a error client side.

i think it can be done use regular expression validatior.
Any idea please help.

use

    try
       {

           your code

      }

   catch
{
         messagebox("plz enter the correct fromat")
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.