![]() |
Admin 6/11/2015 |
This code is not going to work, there are no YEAR or MONTH functions in PHP. |
C
|
carrie3800332 author 6/12/2015 |
Thank you replay, |
![]() |
Admin 6/12/2015 |
This code still makes zero sense. You can only apply format() function to DateTime object. Use code sample from the first answer under http://stackoverflow.com/questions/3605899/php-how-to-get-year-month-day-from-time-string |