Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {php}
- $nextduedate = $template->getVariable('nextduedate')->value;
- $nextduedate = str_replace("/","-", $nextduedate);
- // stel strtotime($nextduedate) == 1565318792 (vrijdag 9 augustus 2019 04:46:32 GMT+02:00)
- // en je moet enkel laten zien als je nog binnen 1 dag zit. 1 dag = 86400 seconden
- $checktime = strtotime($nextduedate);
- $check = ($checktime - time());
- if ($check > 0 && $check < 86400 && $checktime < time()) {
- {/php}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement