Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $christmas = new DateTime(date('Y').'-12-25');
- $today = new DateTime();
- $interval = $christmas->diff($today);
- $days = $interval->format('%d days');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement