How to Get Date of client Machine not of Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rohit189
    New Member
    • Aug 2010
    • 7

    How to Get Date of client Machine not of Server

    I am working on a web site which required date to be pick as per the date time format and date of the client side. not from the date where server is present. as i am new in this i do not have any idea to get the date from client side, or the place where the site is being opened.... Please tell me the way through which i can get the client side date


    Thanks in advance

    Regards
    Rohit
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    i would suggest to use a simple JavaScript function that adds the client's local date to your requests so that you could know it everytime you receive a request ... to get the date clientside you could simply use the JavaScript Date object - https://developer.mozilla.org/en/Jav...l_objects/date

    Comment

    • rohit189
      New Member
      • Aug 2010
      • 7

      #3
      Thanks For your Suggestion i'll use this in my project


      Thanks

      Comment

      Working...