Timepicker save 12h to 24 hours Format
I'm having problem on saving the value of the Time Picker of Kendo to 24
Hours Format , Timepicker shows "HH:mm tt" format but i want to convert it
to "HH:mm:ss" , I use Time Span for my drowdown list
Sample Codes
//having error because Endtime's value is "HH:mm tt"
client.EndTime = TimeSpan.Parse(endTime.Trim());
client.EndTime = new DateTime(endTime).ToString("HH:mm");
client.EndTime
=TimeSpan.ParseExact(endTime,"hh\\:mm\\:ss",CultureInfo.InvariantCulture);
No comments:
Post a Comment