Hi,
How to detect the problem with the time, like
25:40
by enhancing these codes
string format="t";
try
{
System.Globalization.CultureInfo provider = System.Globalization.CultureInfo.InvariantCulture;
DateTime dt = DateTime.ParseExact(tb_start.Text.Trim(), format, provider);
if (dt.Hour == null)
{
...
}
}
catch (Exception ex)
{
...
for finding out the input problem there?
Many Thanks & Best Regards, Hua Min