I use to store date-time vars in a string format because it is practical if software from different frameworks edit the same data (eg. PHP and C++ Builder or Delphi)
I IS practical when you use a YY-MM-DD format. That is because you can easily order these dates as strings.
For example if you have the two dates 01-02-2003, 01-05-1999 (in a DD-MM-YYYY format) if you sort them as strings you will get:
no.1 = 01-02-2003
no.2 = 01-05-1999
this is obviously wrong
if you use a YYYY-MM-DD format the string-styled sorting will give you:
no.1 = 1999-05-01
no.2 = 2003-02-01
... so if you want to get your database properly sorted my suggestion is make a script to change the date formating from DD-MM-YYYY to YYYY-MM-DD... and everyting is going to be fine.
just remember to use always two digits for months and days, not one
kali tixi 🙂