snippets / Sample php date calculations

Language: Php - First posted by alqimantas on 2007-10-18 22:00 (1 year, 1 month)
Link to the snippet: http://www.friendsnippets.org/snippet/95/

Why do I need to fill notes?

1 Today: <?php echo date('Y-m-d') ?> <br />
2 Tomorrow: <?php echo date('Y-m-d', strtotime('+1 day')) ?> <br />
3 1 week later: <?php echo date('Y-m-d', strtotime('+1 week')) ?> <br />
4 1 month later: <?php echo date('Y-m-d', strtotime('+1 month')) ?> <br />
In order to post a comment, you should have a friendsnippet account. Please sign-in.

0 comments

Oct '07

Common Tags



snippet History

Oct '07