Last active
August 29, 2015 14:02
-
-
Save juniorb2ss/0ff0df566aa6a75c379f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$now = DateTime::createFromFormat('d/m/Y', '21/06/2014'); | |
$tomorrow = DateTime::createFromFormat('d/m/Y', '22/06/2014'); | |
var_dump($now == $tomorrow); | |
var_dump($now < $tomorrow); | |
var_dump($now > $tomorrow); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment