I have the below code,
$lastmonthLastDay = date('Y-m-d', strtotime("last day of last month"));
$lastmonthFirstDay= date('Y-m-d', strtotime("first day of -1 month"));
Which works exactly in localhost. But when i push this in live always return 1970-01-01
.
Is there anything i missed in server settings ? kindly advice