Hi ,
In my scenario, have to call web service with StartDate of string type (POST operation),
am using JSON. Stringify method to convert data into json format .
My problem is while stringifying my data , date is going back by one day.
code:
var tStartDate = $("[Name=StartDate]").data("kendoDatePicker").value()
value is : Mon Mar 04 2013 00:00:00 GMT+0530 (India Standard Time) (here time 00:00:00)
JSON.stringify(tStartDate)
This giving : 2013-03-03T18:30:00.000Z instead of 2013-03-04T18:30:00.000Z
So how can I get correct Date here ? in our DB using DateTimeOffset type for storing this date value
Please help me out .
In my scenario, have to call web service with StartDate of string type (POST operation),
am using JSON. Stringify method to convert data into json format .
My problem is while stringifying my data , date is going back by one day.
code:
var tStartDate = $("[Name=StartDate]").data("kendoDatePicker").value()
value is : Mon Mar 04 2013 00:00:00 GMT+0530 (India Standard Time) (here time 00:00:00)
JSON.stringify(tStartDate)
This giving : 2013-03-03T18:30:00.000Z instead of 2013-03-04T18:30:00.000Z
So how can I get correct Date here ? in our DB using DateTimeOffset type for storing this date value
Please help me out .