This question already has an answer here:
- How to get year and month from a date - PHP 10 answers
How can I get the value of a date in php? For example I have a date like this:
$date = "2013-01-29";
And what I want is to get the year the month and the day and assign it in a variable.
Example:
$year = "2013";
$month = "01";
$day = "29";
How can I do this?
</div>