RE: [PHP-GTK] Help with Timestamp
| From: | Paul France | Date: | Thu, 08 Aug 2002 08:14:12 +0000 |
| Subject: | RE: [PHP-GTK] Help with Timestamp | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2309@lists.php.net to get a copy of this message | ||
Try this:
<?php
$uk_date_format = "d/m/Y";
date($uk_date_format,strtotime($db_date_field));
?>
Change the $uk_date_format to your required format and $db_date_field
is your date from the database.
Hope this works for you.
-----Original Message-----
From: Erich Kolb [mailto:ekolb@randbreceivables.com]
Sent: 06 August 2002 21:39
To: php-gtk-general@lists.php.net
Subject: [PHP-GTK] Help with Timestamp
I am storing date/time information in a MySQL DB as timestamp(14). How do I
display this as a readable date when selecting from the db?
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php