Re: Date Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The PHP Manual says :

Example 3. date() and mktime() example 

$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);
     




----- Original Message ----- 
From: "Ramesh PAtel " <ramesh@banas.guj.nic.in>
To: <php-db@lists.php.net>
Sent: Thursday, May 01, 2003 9:40 AM
Subject:  Date Problem


> Hi All
> 
> now Problem is 
> 
> I want to Add date.
> 
> i have one date variable this 
> Ex.  mydate ='2003-04-25'
> 
> now i want to add date
> 
> xyzdate= 2003-04-25 + 5 Day
> 
> And  How to find date diff in Day
> 
> 
> 
> Please Help me.
> 
> Ramesh Patel
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux