SHARE
TWEET

Untitled

a guest Aug 9th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top