Reputation: 4675
I'm trying to get a date that comes next Monday at night 00:01 am. I'm using the following lines:
date('Y-m-d h:i:s', strtotime(**'next monday, 01:01am'**, strtotime(date("Y-m-d h:i:s"))))
This gives me the proper output:
2014-05-19 01:01:00
But if I try to write:
date('Y-m-d h:i:s', strtotime(**'next monday, 00:01am'**, strtotime(date("Y-m-d h:i:s"))))
I'm getting:
1970-01-01 05:30:00
Please tell me what is wrong here.
Upvotes: 0
Views: 104