I'm trying to figure how I can put a dynamic future date onto a webpage. I found plenty of scripts for putting the today's date on a webpage but I want to put a date that is 14 days in the future into it. For example today the date I'd want is July 18, then tomorrow it would be July 19... and so on. Can anyone point me in the right direction on this one?
I presume this is PHP? IF so, just take one of those scrips and look for the call to date() and just add 1209600 seconds to it (or minutes, hours, or whatever the script is working in google helps for this)
The scripts I found were javascript... I'm not much of a genius with this sort of stuff but I can give what you've said a go - it makes sense. I just don't know specifically how to add like you've said.. would it be date (+1209600) ? I suppose I can just try stuff until something works *** edit this is driving me a bit crazy - can't seem to do this as I know nothing about it *** I'm willing to pay someone $10 via PayPal to write me a script that will output the date 2 weeks from today in this format: Friday, July 18 or just July 18 ...
<?php $future = mktime(0,0,0,date("m"),date("d")+14,date("Y")); $mydate = date("F j, Y", $future); echo $mydate; ?> Code (markup): Here's a demo
Thanks man! That's great. I'll send you the $10 via paypal if you send me your paypal account. Thanks again - I very much appreciate it.