Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

mktime function question

two days in the future

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

Junior Member

10+ Year Member

joined:Dec 7, 2004
votes: 0

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]

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

Senior Member

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 30, 2003
votes: 0

Hi Jakotsu,

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

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