Re: Formating datevariables...

From: Date: Tue, 23 Jul 2002 00:00:21 +0000
Subject: Re: Formating datevariables...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108987@lists.php.net to get a copy of this message
Is the timestamp in UNIX format? if yes, try date() http://www.php.net/manual/en/function.date.php if no, try substr() hope that helps :) - Jeremy ----- Original Message ----- From: "Ragnar" <ragnar@chello.no> To: <php-general@lists.php.net> Sent: Tuesday, July 23, 2002 7:42 AM Subject: [PHP] Formating datevariables... > I have a column in a mysql table with a timestamp. The value of this column > is for instance: > > 20020722185242 > > How do i change the format on this to "DDMMYYYY" (22072002) in php? > > Thanx > > -R > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#108987) next »