I want to get only the date from an array containing a datetime string.
Array is:
print_r($incomplete); Output: Array ( [0] => 2015-09-21 11:20:37 ) And I want in below Format,
Array ( [0] => 2015-09-21 ) I have tried like this,
echo date('Y-m-d',strtotime($incomplete));