krot Sep 1st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- $dataMy= date('Ymd',time());
- $a = \DateTime::createFromFormat('Ymd', $dataMy );
- $b = \DateTime::createFromFormat('Ymd',$dlv);
- $interval = $a->diff($b);
- echo $interval->days;
RAW Paste Data