Display date on landing page text



I require a date stamp to be visible on my landing page text. What is the java script code, is it placed before body or head etc… and how do I pull the date reference onto the page.

I have been pointed to this page https://www.w3schools.com/js/js_dates.asp but have no idea how to put it into action.

Would really be thankful for your help.



Hi there!

What kind of format would you like? We’ve used this before on customer pages and it’s really simple to set up.

Do you need the date & time, or simply the time?

Let me know and I’ll shoot you over some instructions!


We just need the date in UK format, so day/month/year.



Hi Raj,

You may need to tweak the last line of the script to get the format you’re looking for.

  1. Paste into javascript “before body end tag”

<script> var months = ['January','February','March','April','May','June','July', 'August','September','October','November','December']; var today = new Date(); today.setTime(today.getTime()); document.getElementById("spanDate").innerHTML = months[today.getMonth()] + " " + today.getDate()+ ", " + today.getFullYear(); </script>

  1. Paste into custom HTML container


I got unbounce to do it, they did. I will email you a collection of some
email lead generation campaigns lets see how we can work together.


I got this to work pretty easily - but how can I control the font size and color of the date?