Home   |   TWP Auctions   |   Contact
The Website Professionals
Real world webmaster resources.
TWP Auctions - the free eBay script RSS feed Twitter

Create PHP dates in the future

The date 2 weeks from today will be:February 18, 2012
Here’s how to display a date in the future (say 2 weeks from today):

<?php
$future = mktime(0,0,0,date("m"),date("d")+14,date("Y"));
$mydate = date("F j, Y", $future);
echo $mydate;
?>

Comments

HHO Henry

August 1, 2008

Thanks this was the exact script I have been looking for, ok so I was only looking for 5 minutes. :) Thanks

Leave a comment

This is a dofollow website. If you leave a comment, then we'll give you a backlink.
Please be aware that this website is strictly moderated. If you post spam, you'll get a slap.










Featured webmaster products for February 2012:
Use a different photo for every card

Copyright © 2012 The Website Professionals - All rights reserved
Links | Privacy policy