How to create a date stamp?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • beto
    Corporal

    • May 2006
    • 11

    How to create a date stamp?

    Is there an easy way to set the current date every day on the main page of my web site?

    Bob
    Beto
  • bill2006
    Lieutenant General

    • May 2006
    • 3421

    #2
    Re: How to create a date stamp?

    Yes there are several ways. What is your website?
    Bill
    www.blueearthtea.com
    www.ftaaconsulting.com
    www.iaval.com
    www.theemeraldbay.com

    Comment

    • Collectors-info
      General

      • Feb 2006
      • 8703

      #3
      Re: How to create a date stamp?

      Try cutting & pasting this script between the dotted lines into you html box. NOT the dotted lines.
      -----------------------------------------------------------------------

      <html>
      <head>
      <title>Creates TIMEDATE STAMP for WEB PAGES BY htpp://www.collectors-info.com</title>
      </head>
      <body bgcolor="ffffff">
      <script LANGUAGE="Javascript">
      <!-- Hiding from those old Browsers
      // Y2K READY-USE GetFullYear
      // DAY Names Javascript is funny Starts the numbering with Zero this array translates to 0...6 to the days of the week
      // REMEMBER Arrays have to be written all on ONE(1) line to work
      var stampdays = new Array( "Sunday","Monday","Tuesday","Wednesday","Thursday" ,"Friday","Saturday");
      // Month Names - Guess what this array does. 0..11 to the system clock month
      var stampmonths = new Array( "January","February","March","April","May","June", "July","August","September","October","November"," December");
      // GRABS the Date info from your System clock when your Browser reads enters the page.
      var thedate = new Date();
      //Gets the Translated Arrays written to the webpage for viewing. Remember you can use this for other things, too
      document.write(stampdays[ thedate.getDay()] + ", " + stampmonths[ thedate.getMonth()] + " " + thedate.getDate() + ", " + thedate.getFullYear());
      // -->
      </script>
      </body>
      </html>
      -----------------------------------------------------------------------


      Chris.
      Regards Chris.

      Collectables, Collecting, collectors-info.com

      www.chrismorris.co.uk

      House build project

      Comment

      • beto
        Corporal

        • May 2006
        • 11

        #4
        Re: How to create a date stamp?

        My site address is www.htorganizer.com.

        And ummmmm, what is my html box? Is that something in the page properties html, or is that the box I get from the html icon on the left side tools bar? How does the position of that box affect the outcome. How do I position and format the time stamp?

        Thanks for your help.

        Bob
        Beto

        Comment

        • bill2006
          Lieutenant General

          • May 2006
          • 3421

          #5
          Re: How to create a date stamp?

          Patience.
          Did you visit the tutorials?
          HTML is the first funny little icon on the left of your BlueVoda screen, if by chance it is not there, try Insert>Advanced>HTML from the top menu. You got it right on your home page.

          Your own creativity will determine where you position your elements on your page, keep in mind page width and keeping it user friendly.

          Good luck.
          Bill
          www.blueearthtea.com
          www.ftaaconsulting.com
          www.iaval.com
          www.theemeraldbay.com

          Comment

          • beto
            Corporal

            • May 2006
            • 11

            #6
            Re: How to create a date stamp?

            Thanks Bill, that worked.

            I had visited that tutorial, but the tutorial should be more complete. It gives no hint what is going on except that you open this box and insert your html code. To a newbie like me, it is really bare bones.

            I have the date stamp in plain black letters. Can I control format such as color, font, size? Is there a list of other utilities such as this one availabe somewhere?

            Bob
            Beto

            Comment

            • bill2006
              Lieutenant General

              • May 2006
              • 3421

              #7
              Re: How to create a date stamp?

              Your welcome, yes you can control color and font, etc. look at the first lines and there will be something like:
              <FONT style="font-size:13px" color="#000000"
              sometimes followed by the font type. For a list of some colors go to:
              Bill
              www.blueearthtea.com
              www.ftaaconsulting.com
              www.iaval.com
              www.theemeraldbay.com

              Comment

              Working...
              X