Does anyone know where I can find the code for the sales page date minus 4 days. I came across it the other day but cant find it now. Thanks.
Anyone know this? A lot of sales pages say something like "Updated Nov 26." It usually shows a date 4 days before the current date. Its done through javascript. I came across the code a few days ago on a clickbank vendor site in the affiliate section but I cant remember the product I was looking at.
If your server uses PHP, you can do it with one line of code. <?php echo "Updated " . date("F j, Y", strtotime("-4 days")); ?> Code (markup): That way, if JavaScript disabled (client-side), the server side code would still work. Or, you can use JavaScript and create a <noscript><?php echo "Updated " . date("F j, Y", strtotime("-4 days")); ?></noscript>