why does the following code report that this is not a legitimate 24 hour time?
Posted on 2015-01-28
the time selected is 24:00 which is midnight, I know many people subtract or add 1 minute to avoid this problem, but 24:00 is the correct time for midnight on a 24 hour clock.
if I put in 23:59 it works fine but is technically incorrect.
is there a syntax error with the descriptor?
time1 = DateTime.ParseExact(datestub & DirectCast(CustomersGridView.Rows(i).FindControl("ddlin"), DropDownList).Text, "yyyy-MM-dd H:mm", CultureInfo.InvariantCulture)
Catch ex As Exception
Message.Text = "enter a number in 24 hour format for start time ." & CustomersGridView.Rows(i).Cells(0).Text
message2.Text = Message.Text