Re: Newby: DATE Question
| From: | Chris Boget | Date: | Thu, 24 Oct 2002 16:09:36 +0000 |
| Subject: | Re: Newby: DATE Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121300@lists.php.net to get a copy of this message | ||
> Here is a sample of one record that has the value of 20021024083050 in
> the date column.
The date above isn't in unix time stamp format. Though it doesn't look
like it at first, it's the actual date. Read it as such:
2002/10/24 08:30:50
The first 4 digits is year
the following 2 digits is month
the following 2 digits is day
the following 2 digits is hour (24h format)
the following 2 digits is minutes
the following 2 digits is seconds.
I'm sure there is already a function out there that parses this but if not, it
should be simple enough to parse it yourself.
Chris