Re: date

From: Date: Thu, 31 Aug 2000 13:44:23 +0000
Subject: Re: date
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14597@lists.php.net to get a copy of this message
hi max, use <?php $formattedtime = strftime("%Y%m%d%H%M%S",time()); print $formattedtime; ?> to have your time in that format stored in $formattedtime, enjoy; Ahmad Anvari ps. seems everytime i log into this account and check last e-mails i see lotsa time and date problems! ;-D [thanks to Dan for his very very kind reply to my answer] ----- Original Message ----- From: "n e t b r a i n" <net-brain@net-brain.net> To: <php-general@lists.php.net> Sent: Friday, September 01, 2000 12:02 AM Subject: [PHP] date > Hi, > > I need a small help in order to produce a current date in the same format as > is made by a timestamp field of MySql ... I mean, like this e.g. ----> > 20000831205840 > > anyone could help me, please? > > many thanks in advance > max > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#14597) next »