The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › php order by date
I’m working on a php script that gets some records from a database, and then orders them based on their date.
The issue I’m having is that the dates were entered like 7-24-15, instead of 07-24-15, so October, November, and December dates are all coming before February.
Any ideas on how I could get the dates to order like they should?