Re: Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

From: Date: Tue, 12 Mar 2002 10:39:14 +0000
Subject: Re: Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88174@lists.php.net to get a copy of this message
> Hi, > I have stored the date and time in mysql table with DATETIME > type. > > I want to change it in to DD/MM/YYYY HH:MM AM or PM. > > How can I do this? When you select the 'datetime' field from mysql use UNIX_TIMESTAMP(). Then in PHP use strftime() to format the 'datetime' field to your liking. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Happiness isn't something you experience; it's something you remember. -- Oscar Levant */

« previous php.general (#88174) next »