Home Unanswered Active Tags New Question

12 hours - 24 hours adding to database

Hi Guys, I wander if any of you have had the same problem...

I am using the TimeRangeSelected method and even though I have opted for 24 hour clock it gives me a datetime back of

2007-07-16 01:00:00 PM

^^the above is no good as mySQL database wants it as:

2007-07-16 13:00:00

so whenever iselect time it always loads the appointment to the first half of the day (and unfortunately the office is open from 0700 to 2100...

any ideas?

Thanks

Spencer

Asked by Spencer 4 years ago.
Replies
You can use this code:
string dateString = date.ToString('yyyy-MM-dd HH:mm:ss');
Comment posted by Dan Letecky 4 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java