python - Reading DateField with specific format from SQL database using peewee -


i read column of date sql database. however, format of date in database 27-jan-13 day-month-year. when read column using peewee datefield read in format cannot compared later using datetime.date.

can me solve issue?

you need store data in database using format %y-%m-%d. when extract data can present in format like, ensure data sorted correctly (and recognized sqlite date) must use %y-%m-%d format (or unix timestamps if prefer way).


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -