How to change format of dates for DatePicker from ipywidgets? Default format is 'mm/dd/yyyy' and I want to set it to 'yyyy-mm-dd'?
Asked
Active
Viewed 2,136 times
9
-
Can you explain a bit more? Do you mean the display text in the DatePicker widget? The default for me appears as dd/mm/yyyy. If you call the .value attribute of the widget, once a date has been chosen, you will get a `datetime` object. – ac24 Jun 27 '18 at 10:48
-
yes, default text for me is also in dd/mm/yyyy format, but i want to change displayed text format to yyyy-mm-dd – Slavka Jun 27 '18 at 16:09
-
@ac24, how comes your default format is dd/mm/yyyy? I run Ipython in a PC with Greek country codes (i.e. the date is dd/mm/yyyy) and I get an English one (mm//dd/yyyy)! – Apostolos May 13 '19 at 11:13
-
Does it depend on browser? I am using Chrome. – ac24 May 13 '19 at 12:03