datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

Correct format for input datetime-local

Open rubengc opened this issue 8 years ago • 2 comments

I am using built-in html fields (date, time and datetime-local) because this types displays the values according to navigator locale automatically and stores a database friendly values

I try to set as format Y-m-d\TH:i for datetime-local but this prints datetimes like 2016-07-22GMT+020012:10

How can I print this T char? (I tested c format too, but does not work with datetime-local)

rubengc avatar Jul 22 '16 10:07 rubengc

I have the same issue with format: 'F jS Y \\a\\t h:m'

jedi58 avatar Aug 24 '16 11:08 jedi58

hey, i found the solution on https://github.com/xdan/datetimepicker/issues/272

descl avatar May 14 '19 14:05 descl