I want to convert date into another format but its shows default date.
$date ='2050-12-12 00:00:00';
echo $product_expire_date = date('Ymd', strtotime($date));
It shows the default date 19700101.
I want to convert date into another format but its shows default date.
$date ='2050-12-12 00:00:00';
echo $product_expire_date = date('Ymd', strtotime($date));
It shows the default date 19700101.