Javasscript to get time only from datetime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sindhu
    New Member
    • Oct 2006
    • 53

    Javasscript to get time only from datetime

    Hello everyone
    i want to know how to fetch only date or time from datetime now using javascript
    please help
    thanks
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by sindhu
    Hello everyone
    i want to know how to fetch only date or time from datetime now using javascript
    please help
    thanks
    Have a look at this page.
    Perhaps that's what you are looking for?

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Originally posted by r035198x
      Have a look at this page.
      Perhaps that's what you are looking for?
      That uses old code e.g. getFullYear should be used instead of getYear. See a more up-to-date reference.

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by acoder
        That uses old code e.g. getFullYear should be used instead of getYear. See a more up-to-date reference.
        Thanks for that.

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by r035198x
          Thanks for that.
          You're welcome!

          Comment

          Working...