homepage Welcome to WebmasterWorld Guest from 54.196.195.158
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
mktime function question
two days in the future
Jakotsu




msg:3340714
 6:36 am on May 16, 2007 (gmt 0)

Hi,
How can I use the mktime() function to display a date and time that is exactly 2 days in the future from the current time? Thanks!

TOPIC TITLE is wrong, it's mktime not mkdate!

[edited by: Jakotsu at 6:37 am (utc) on May 16, 2007]

 

dreamcatcher




msg:3340735
 7:12 am on May 16, 2007 (gmt 0)

Hi Jakotsu,

Why not use strtotime [uk3.php.net]?

echo date("Y-m-d",strtotime("+2 days"));

dc

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved