note 86184 added to function.date
| From: | adityabhai | Date: | Tue, 07 Oct 2008 09:56:50 +0000 |
| Subject: | note 86184 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145116@lists.php.net to get a copy of this message | ||
Aditya Bhatt (adityabhai [at] gmail [dot] com):
I have one date, and i want the next day of that date:
<?php
echo date("D F d Y",strtotime("+1 days")); // Same applies for months e.g.
"+1 months"
?>
I have one date, and i want the previous day of that date:
<?php
echo date("D F d Y",strtotime("-1 days")); // Same applies for months e.g.
"-1 months"
?>
----
Server IP: 59.162.86.33
Probable Submitter: 59.162.251.99
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- https://master.php.net/note/edit/86184
Del: integrated -- https://master.php.net/note/delete/86184/integrated
Del: useless -- https://master.php.net/note/delete/86184/useless
Del: bad code -- https://master.php.net/note/delete/86184/bad+code
Del: spam -- https://master.php.net/note/delete/86184/spam
Del: non-english -- https://master.php.net/note/delete/86184/non-english
Del: in docs -- https://master.php.net/note/delete/86184/in+docs
Del: other reasons-- https://master.php.net/note/delete/86184
Reject -- https://master.php.net/note/reject/86184
Search -- https://master.php.net/manage/user-notes.php