Home > Questions and Answers > General Questions

add dynamic date to LP code? (4)


07-13-2013 07:21 AM #1 thetopham (Member)
add dynamic date to LP code?

how do you add a dynamic date to a LP???

saving my LP in .php format


07-13-2013 07:38 AM #2 thetopham (Member)

for anyone wondering,

$date = date("m-d-y", strtotime("tomorrow"));
echo $date;

google is my friend :P


07-13-2013 07:43 AM #3 thetopham (Member)

this one is even better

http://php.net/manual/en/function.date.php

code:

<?php $date = date("F jS Y", strtotime("tomorrow"));
echo $date; ?>


07-13-2013 12:45 PM #4 caurmen (Administrator)

Nice!

You can also use Javascript to do the same thing if you don't want to run PHP for some reason, although PHP is probably a better choice most of the time.


Home > Questions and Answers > General Questions