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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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

Reply via email to