So I like this girl and..
harrrranyway,
I have birth dates in a table stored as 11/07/1982 or 7/5/1974 etc.
Now there are 7150 records and I cannot really alter the date format
to conform with the mysql YYYY-MM-DD format. Reason being I need to
search by age, ie, BETWEEN 2 dates, which if they're in the DD/MM/YYYY
format it wont work.
Is there a way to :
a) easily change the format of the data in there
b) mysql has some sort of command telling it that the date is actually
in DD/MM/YYYY and to do its magic and work as if it was the norm.
I will be adding new entries to the data. If it's a) I can format the
date on the fly and input it into the database. If it's b) I will let
the data stay as it is
Help appreciated
Ry
harrrranyway,
I have birth dates in a table stored as 11/07/1982 or 7/5/1974 etc.
Now there are 7150 records and I cannot really alter the date format
to conform with the mysql YYYY-MM-DD format. Reason being I need to
search by age, ie, BETWEEN 2 dates, which if they're in the DD/MM/YYYY
format it wont work.
Is there a way to :
a) easily change the format of the data in there
b) mysql has some sort of command telling it that the date is actually
in DD/MM/YYYY and to do its magic and work as if it was the norm.
I will be adding new entries to the data. If it's a) I can format the
date on the fly and input it into the database. If it's b) I will let
the data stay as it is
Help appreciated
Ry
Comment