I have got two arrows set up, click for next day, next two days, soon and previous day, two days ago, soon. the code seem not working? as it only get one next and previous d
You could use 'now' as string to get today's/tomorrow's/yesterday's date:
$previousDay = date('Y-m-d', strtotime('now - 1day')); $toDay = date('Y-m-d', strtotime('now')); $nextDay = date('Y-m-d', strtotime('now + 1day'));