Re: date problem
| From: | Lowell Allen | Date: | Thu, 27 Feb 2003 22:06:36 +0000 |
| Subject: | Re: date problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137477@lists.php.net to get a copy of this message | ||
> From: "Alexander Tsonev" <a_tsonev@contact.bg>
>
> Hello,
> I would ask you a question about date type
> if I have a variable from date type ($newdate) such as 2003-02-17
> how can I separate $newdate into 3 different variables? I want to create
> such variables:
> $day=17
> $month=2
> $year=2003
> I searched a lot, but I didn't find how to do this.
> I'll be very happy if someone helps!
>
list($year, $month, $day) = explode("-", $newdate);
--
Lowell Allen