I am trying to convert a date to month name and year.
$date = \'2017-07-00\'; $date = date(\'m/y\', strtotime($date)); echo DATE_FORMAT($date, \'%M %Y\'); >
No Need of DATE_FORMAT() function.
Example-1: If 00 used in day. Then, output will be June, 2017
Example-2: If 01 or valid day used in day. Then, output will be July, 2017