Re: Problem!

From: Date: Tue, 30 Jan 2001 01:22:06 +0000
Subject: Re: Problem!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37199@lists.php.net to get a copy of this message
<<1. $date = "20010101"; How could I output 01 01 2001 (or make it 3 variables, like day, month, year)?>> $year = substr($date,0,4); $month = substr($date,4,2); $day = substr($date,6,2); ...Assuming that the date is stored in yyyymmdd format.

« previous php.general (#37199) next »