Re: What's the best way to put a date into a database?
all date calculations are done using the YYYY-MM-DD format (MySQL DATE format).
you to leave the DATE format in the db as it is, so you can do calculations, searches etc. Only re-format the date to your required format when displaying it to the user using the DATE_FORMAT MySQL command:
DATE_FORMAT(your_date, "%d-%e-%Y")
|