Hey Tek-Tips,
I have a database full of dates in the form of year/month/day/time/second in a string of characters.
Eg. 20030102030405 is 2003, January the second, at 3.04.05 am.
I am attempting to parse the dates in the format they are in, back into separate variables.
Eg.
$year = "2003";
$month = "01";
$day = "02";
I figured I could do something like this:
$year = $rawdate[01];
but that doesn't work.
Any ideas, tips, or code, would be very greatly appreciated.
Thanks,
twitaboy
I have a database full of dates in the form of year/month/day/time/second in a string of characters.
Eg. 20030102030405 is 2003, January the second, at 3.04.05 am.
I am attempting to parse the dates in the format they are in, back into separate variables.
Eg.
$year = "2003";
$month = "01";
$day = "02";
I figured I could do something like this:
$year = $rawdate[01];
but that doesn't work.
Any ideas, tips, or code, would be very greatly appreciated.
Thanks,
twitaboy