Hey all, i was wondering if anyone knew a good way to sort out a date in format mm/dd/yy so that the newest dates are at the top. when i tried it using a normal sort() function it only sorted it by month and not the whole date
Convert the dates to a UNIX timestamp using mktime() and then sort them using sort(). Then, if you need to, convert them back using date(). This will take all of four lines of code.