Home > Questions and Answers > General Questions

Adding Date on LP's (3)


08-08-2011 08:01 AM #1 lavish (Member)
Adding Date on LP's

Hey guys,

Couldn't find it (although I know it is around!). If I want to fetch todays date and play with that variable ie:

Get it before August 8th.

OR

Supplies limited after August 5th.

How would I do that?

Thanks.


08-08-2011 08:19 AM #2 vitz (Member)

http://stmforum.com/2011/02/04/steal...-from-me-free/

Or if you need diffrent display google for "javascript date"


08-08-2011 08:24 AM #3 movingshadow (Member)

HTML Code:
<?php echo date("F jS"); ?>
will output "August 8th" (today)

HTML Code:
<?php 
$days = 3; // how many days from today?
$days = $days * 86400; // calculating...
echo "Get it before ".date("F jS", time() + $days);
?>
will output "Get it before August 8th"


Home > Questions and Answers > General Questions