I am using the jQuery datetime picker to take the user input .
I have dateformat like `dateFormat: "d-MM-yy", in my jQuery setting it returns the date like
15-January-2013 20:00
Unfortunately my php db accepting the value in 2013-01-20 20:00
format
I can use php strotime()
to parse the date exactly like 2013-01-15 20:00
but this can causes the timezone error so i want to 2013-01-15 20:00
as a raw string to the php side .
Is their any way so that user can see like 15-January-2013 20:00
in input box and my php program will get the 2013-01-15 20:00
value .
Update
I want 15-January-2013 20:00
to be 2013-01-15 20:00
in php side