Windows Phone 7 Developer Launch - Learn More

System.DateTime

There are 1 entries for the tag System.DateTime

Sending DateTime Parameters from AJAX to WCF Operations (methods)

Yesterday I got stuck on a problem with a DateTime parameter I was attempting to submit to a WCF operation (method). I was trying to call call the operation using POST and the format was JSON. I was getting the value from the javascript Date object like this:var eventDate = new Date();var json = { date : "/Date(" + eventDate.getTime() + ")/" };// value of date would be "/Date(65746416843)/"(yes that number is completely off the top of my head)But after the POST operation the date on the server side was 7 hours ahead. I knew it was because I am...

 

 

Copyright © Mark J. Miller