none
Time Zone issue with web services (From server date is returning as Nov 17 2015 but in the browser it is showing as Nov 16 2015)

    Question

  • Hi,

    Time zone issue when client and servers are in different time zones.

    Sub: From server date is returning as Nov 17 2015 but in the browser it is showing as Nov 16 2015.

    1) Server (Where the web services are hosted) is in (UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi time zone.

    2) Client is in (UTC-05:00) Eastern Time (US & Canada) time zone.

    Before returning the date to the client, the value in it is 11/17/2015 12:00:00 AM.

    And at the client page(.js file) I am receiving the date in JSON format, the value is /Date(1447698600000)/.

    If I'm converting it by using java script  new Date(1447698600000), then it is converting as Mon Nov 16 2015 13:30:00 GMT-0500 (Eastern Standard Time).

    But in the client browser also i need to show Nov 17 2015. i.e what ever the date returning from the server that one i need to show.

    Note: Client's time is not fixed. It may be anything.

    Please advise me what i need to do.

    Thanks in Advance.

    Tuesday, December 8, 2015 1:13 PM

Answers

  • Are you programing ASP.Net? If so I'd try over here.

    http://forums.asp.net/

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Tuesday, December 8, 2015 1:54 PM
    Moderator