Ok. I am coding something where you have to manually insert the dates.
Such as... You have a patient. And you want to add a date for the last time this patient visited.
The way it will work.. You won't be adding this to the database the same day that the patient visited. A worker will have forms and will insert this stuff into the database when it gets to he/she. So the only way to get the correct date is to type it in manually.
Now, when I am listing the dates, I want to list the last 10 times this patient visited.
I originally had it so that it would show the last ten entered into the database, but I figure that if someone adds an older date to the database AFTER a new date has been added, then it will show the older date first because it was inserted into the database last.
I'm trying to figure out a way to order the dates in the correct order, no matter when or what order they were put into the database.
The format of the dates are
MM/DD/YYYY.
Now.. For single number months (1-9), there will NOT be a zero in front of it. Just want to make sure that is known.
I am just kind of lost on what to do here.
Any help is greatly appreciated.