django - Format datetime-local in html5 to DD/MM/YYYY in date part and 24 hour in time part -


i developping django project , use element datetime-local in html <input type="datetime-local" name="starttime" value={{starttimestring}}> , <input type="datetime-local" name="endtime" value="2015-07-10t19:00:00">, since need datetime range.

its format on browser mm/dd/yyyy hh:mm am(pm), in country, convention dd/mm/yyyy , 24 hour format. how can change it?

what want change format of element showing on web page. , if possible set format of datetime-local, prefer not split 2 separate selectors: date , time.

thank idea.

it seems me, should make minor data settings in code.

 example:   <p>today: {{ today|date:"m d, y" }}</p> 

make time settings accordingly this, too.

this https://docs.djangoproject.com/en/dev/ref/settings/#date-format


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -