Re: Time/date function MYSQL->UNIX
| From: | Peter | Date: | Fri, 24 May 2002 21:16:00 +0000 |
| Subject: | Re: Time/date function MYSQL->UNIX | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99161@lists.php.net to get a copy of this message | ||
OK cheers. I'll have a try.
I saw UNIX_TIMESTAMP() in the MySQL docs but I didn't quite understand it
(PHP is MUCH easier for me!)
Thanks for the example too
"Peter" <newsaddress@saracenvsu.org.uk> wrote in message
news:20020524210625.14400.qmail@pb1.pair.com...
> Is there a built in PHP function which will convert a MySQL type date
> (YYYYDDMM or whatever) into a unix timestamp so it can be used with the
> other PHP time and date functions?
>
> I'm currently using substr() to extract bits of the date so it displays as
> DD / MM / YYYY but it's annoying!
>
>