Setting the Date Format in the input fields

19 views
Skip to first unread message

Amisha Hans

unread,
May 18, 2017, 6:58:58 AM5/18/17
to Django users
The default format is :
 
YYYY-MM-DD HH:MM:SS

i want it as YYYY/MM/DD HH:MM:SS for all the inputs ...
 
outputing in the same format was easy : using date and time filters 
 please help me out



akashma...@gmail.com

unread,
May 18, 2017, 8:04:30 AM5/18/17
to Django users
well , i am not sure about this ..but you can use javascrpit by creating a -{ new Date()   }- bject in it......hope it will work


Reply all
Reply to author
Forward
0 new messages