Need help with css/html coding to add current date shown to visitors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kay Womack
    New Member
    • Sep 2010
    • 3

    Need help with css/html coding to add current date shown to visitors

    My site uses css to generate html pages. I want to insert text in a certain area and have the date automatically update to the current date when visitors load the page.

    Can this be down and how, please? Any help would be most appreciated.

    Thanks in advance!

    kay
    Last edited by Kay Womack; Sep 16 '10, 09:37 PM. Reason: typo
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    CSS does not generate HTML. What you are asking to do cannot be done with HTML or CSS either. You need a programming language.

    Comment

    • Kay Womack
      New Member
      • Sep 2010
      • 3

      #3
      ok. thanks. I'm really new at this and need help. what kind of programming language do I need?

      Comment

      • Ramil Alcibar
        New Member
        • Sep 2010
        • 10

        #4
        Try JavaScript or PHP but it depends on what programming language your site was written. It also depends what date you want to output: the date on the visitors' computer or your server date or maybe a date for a certain timezone.

        Is it pure HTML/CSS? If so, just go with the JavaScript option which displays visitors' computer date.

        Comment

        • Kay Womack
          New Member
          • Sep 2010
          • 3

          #5
          yes, it is pure html/css. Thanks, I'll try the js.

          Comment

          Working...