Thread: PHP Date Help
View Single Post
  #4 (permalink)  
Old 06-13-2005, 07:01 PM
ethic ethic is offline
Moderator
 
Join Date: May 2005
Posts: 139
ethic is on a distinguished road
iTrader: (0)
Default

Quote:
Originally Posted by jitender
hi nikhil,

There are lot's of option to calculate the due date, use below to start the script

Code:
$tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y")); $lastmonth = mktime(0, 0, 0, date("m")-1, date("d"), date("Y")); $nextyear = mktime(0, 0, 0, date("m"), date("d"), date("Y")+1);


Regards
Jitender

Yes.

it's a good code to manage the date and calculate the date next day, previous day and more!

ethic
Reply With Quote