Advertisement
Guest User

Untitled

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