I am building a site for a band. I want to have a section which lists the upcoming shows they will be playing. The band will enter the dates in the mm-dd-yy format.
I’m having a few issues:
As I understand it MySQL formats dates as yyyy-mm-dd. How do convert the mm-dd-yy to the necessary yyyy-mm-dd?
On one page i will have a table in which i want to list the next 5 shows that they will be playing. I’m a little confused as to how I query only the shows that have dates later than the current day.
Similar to 1. When i DO display the dates how to i make them appear in mm-dd-yy format?
I am working on this EXACT PROBLEM! The code right there works… the only problem is, it is ordering alphabetically (changed the format of date so that it executes as “Monday, March 21, 2006”.
I have several dates following, but they are out of order. They are ordering alphabetically. I need them to order by their actual dates.