Json returns different dates when local machine and server in different timezones
问题 I have a strange problem in json date parsing. I am using the following to parse the json date: dateFormat(new Date(parseInt(user.RegDate.substr(6))), "mm/dd/yyyy") When my local machine (Client) is in different timezone from the server timezone, then it returns different dates when i try to retrieve the registered date of the users. For ex.: Registered date in SQL: 2010-07-22 19:00:00.000 When i debug in local machine which is in IST Timezone, the dates from JsonResult returned are: /Date