Posted By

STaRDoGG on 02/18/12


date cron

Versions (?)

Subtract a Day from a date

 / Published in: PHP

Subtract a day from the date stamp so we can set the cron for midnight & get a full 24hr Database backup w/proper date stamp.

  1. $newdate = date('Y-m-d', strtotime('-1 day', strtotime(date("Y-m-d"))));

Report this snippet  

You need to login to post a comment.