How do I put todays date on sales page?

4 replies
Hi all

I've noticed how a lot of sales pages have todays date at the top, how do I do this?

I guess it's simply a piece of HTML code.

Thanks

PS. I got a pm from Jacksonlin but the system won't let me reply as I have less than 15 posts!

If you're reading, Jacksonlin, my mentor is John Thornhill (do a google search for more info.)
#date #page #put #sales #sales page #todays
  • Profile picture of the author Eric Stanley
    Put this anywhere between <HEAD> and </HEAD>:

    Code:
    <SCRIPT language=JavaScript>
    function makeArray(n) {
    this.length = n
    return this
    }
    monthNames = new makeArray(12)
    monthNames[1] = "January"
    monthNames[2] = "February"
    monthNames[3] = "March"
    monthNames[4] = "April"
    monthNames[5] = "May"
    monthNames[6] = "June"
    monthNames[7] = "July"
    monthNames[8] = "August"
    monthNames[9] = "September"
    monthNames[10] = "October"
    monthNames[11] = "November"
    monthNames[12] = "December"
    function dateString(oneDate) {
    var theMonth = monthNames[oneDate.getMonth() + 1]
    var theYear = oneDate.getFullYear()
    return theMonth + " " + oneDate.getDate() + ", " + theYear
    }
    //-->
    </SCRIPT>
    and this where you want the date:

    Code:
    <script language="JavaScript" type="text/javascript">document.write(dateString(new Date()))</script>
    Signature
    {{ DiscussionBoard.errors[406550].message }}
  • Profile picture of the author lgibbon
    Banned
    Here you go:

    <SCRIPT>

    var mydate=new Date()
    var year=mydate.getYear()
    if (year < 1000)
    year+=1900
    var day=mydate.getDay()
    var month=mydate.getMonth()
    var daym=mydate.getDate()
    if (daym<10)
    daym="0"+daym
    var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thu rsday","Friday","Saturday")
    var montharray=new Array("January","February","March","April","May"," June","July","August","September","October","Novem ber","December")
    document.write("<font color='000000' face='Georgia'>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</font>")

    </SCRIPT>
    {{ DiscussionBoard.errors[406553].message }}
  • Profile picture of the author Stuart Turnbull
    Thanks guys

    That's very helpful!

    Stuart
    Signature
    http://stuart-turnbull.com - NOT your run of the mill marketer
    {{ DiscussionBoard.errors[407105].message }}

Trending Topics