No but it wouldn't be hard to add functions that do the same thing.
Although if you have the date in a known string format like 2009-8-7 better off just exploding it
$date = explode("-",'2009-8-7');
$date[0] will have the year
$date[1] will have (is that month or day?
$date[2] will have (is that month or day?
Working with unknown dates from strings can be inaccurate unless you are sure that the date is how you would expect it.
Replies
No
No but it wouldn't be hard to add functions that do the same thing.
Although if you have the date in a known string format like 2009-8-7 better off just exploding it
$date = explode("-",'2009-8-7');$date[0] will have the year
$date[1] will have (is that month or day?
$date[2] will have (is that month or day?
Working with unknown dates from strings can be inaccurate unless you are sure that the date is how you would expect it.
Post new comment