Skip to content

Instantly share code, notes, and snippets.

@viniciusss
Created July 8, 2013 14:59
Show Gist options
  • Save viniciusss/5949577 to your computer and use it in GitHub Desktop.
Save viniciusss/5949577 to your computer and use it in GitHub Desktop.
<?php
$dataAgendamento = DateTime::createFromFormat('d/m/Y', '01/07/2013');
$dataLimite = new \DateTime('now');
$dataLimite->modify('+120 day');
if($dataAgendamento > $dataLimite)
echo 'Deu errado';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment