How To put the time stamp date in the sales letter

Discussion in 'HTML & Website Design' started by marioxiao, Dec 17, 2008.

  1. #1
    I want to ask how to put the time stamp date in the sales letter,

    for example like :

    Date: Tuesday, December 16, 2008 <------- this one
    To : All Internet Marketers
    From : bla bla bla

    Did anyone know the script for this one ?
    thanks
     
    marioxiao, Dec 17, 2008 IP
  2. islandhopper8

    islandhopper8 Active Member

    Messages:
    100
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #2
    is this on a webpage? In asp.net you just do:

    put a lableon the page
    <asp:Label ID="LblTimedate" runat="server" Text="Label"></asp:Label><
    and in the code behind you do:
    Me.LblTimedate.Text = Format(Today(), "ddd, dd MMMM yyyy")

    How this is what you are looking for.
     
    islandhopper8, Dec 17, 2008 IP
  3. terrapin719

    terrapin719 Peon

    Messages:
    356
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    this bit of javascript works nicely:
    
                    <script language="JavaScript">
     
    DaysofWeek = new Array()
    DaysofWeek[0]="Sunday"
    DaysofWeek[1]="Monday"
    DaysofWeek[2]="Tuesday"
    DaysofWeek[3]="Wednesday"
    DaysofWeek[4]="Thursday"
    DaysofWeek[5]="Friday"
    DaysofWeek[6]="Saturday"
     
    Months = new Array()
    Months[0]="January"
    Months[1]="February"
    Months[2]="March"
    Months[3]="April"
    Months[4]="May"
    Months[5]="June"
    Months[6]="July"
    Months[7]="August"
    Months[8]="September"
    Months[9]="October"
    Months[10]="November"
    Months[11]="December"
     
    RightNow = new Date()
     
    var day = DaysofWeek[RightNow.getDay()]
    var date = RightNow.getDate()
    var Month = Months[RightNow.getMonth()]
    var Year = RightNow.getFullYear()
     
    if (date == 1 || date == 21 || date == 31)
    {ender = "<SUP>st</SUP>"}
     
    else
    if (date == 2 || date == 22)
    {ender = "<SUP>nd</SUP>"}
     
    else
    if (date == 3 || date == 23)
    {ender = "<SUP>rd</SUP>"}
     
    else
    {ender = "<SUP>th</SUP>"}
     
    document.write(" " +day+ " " +Month+ " " +date+ ender+ ", " +Year+ " ")
                            </script>
    
    HTML:
     
    terrapin719, Dec 18, 2008 IP
  4. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Or in PHP:
    <?=date('l, F j, Y')?>
    PHP:
     
    Yesideez, Dec 18, 2008 IP