note 86183 deleted from function.date by derick
| From: | derick@php.net | Date: | Sun, 26 Oct 2008 12:56:53 +0000 |
| Subject: | note 86183 deleted from function.date by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145762@lists.php.net to get a copy of this message | ||
Note Submitter: adityabhai [at] gmail [dot] com
----
Aditya Bhatt (adityabhai [at] gmail [dot] com):
I have the current date & time, with me or any other date for which i want to check the month.
I want to display the next month using date function, it can be very helpful and a simple way to do
this:
<?php
echo date('F j, Y, g:i a');
echo '<br />';
echo date('F j, Y, g:i a', strtotime('+1 month')); // Here you can change
'+1 month' to n number of months you required in some of your calculation.
?>