Re: Formating datevariables...

From: Date: Wed, 24 Jul 2002 00:10:04 +0000
Subject: Re: Formating datevariables...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109173@lists.php.net to get a copy of this message
Thanx for the help.. I ended up with this solution ;) $dag = substr ( $row['endret_dato'], 7, 2 ); $mnd = substr ( $row['endret_dato'], 4, 2 ); $aar = substr ( $row['endret_dato'], 0, 4 ); date ("dmY", mktime(0,0,0,$mnd,$dag,$aar) ) -R "Ragnar" <ragnar@chello.no> wrote in message news:20020722234455.41274.qmail@pb1.pair.com... > 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 > >

« previous php.general (#109173) next »