I have set up cronjob wherein MySQL query there are used NOW SQL function at lots of time. I want to run cronjob for a past date so I need to change in code. But I think if I will change return static past date value in now function of SQL then I can do a thing without code change.
My current code in cronjob.
....
$query = "SELECT * from table_name where from_date <= DATE(NOW())";
....