
May 18th, 2000, 02:05 PM
|
|
Junior Member
|
|
Join Date: May 2000
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Hello:
I have a variable ($today) that is simply
$today = date("m/j/Y");
I want to get another variable for x months down the line, but using the php.net reference of the mktime and date command, my second date, as follows comes out in a large number. How can I make sure it is forwarding the date properly, and format it like mm/dd/yyyy? Any help would be greatly apperciated.
This is the line from php.net reference page. I need this to calculate properly, and format mm/dd/yyyy - just like my variable up top.
$two_months_from_today = mktime(0,0,0,date("m")+2 ,date
("d"),date("Y"));
------------------
.·: jawatech.com :·.
|