I have a REST api, thats being called from a silverlight client, and when I do a get I’m sending datetimes like this:
/getInformation?id={id}&checkFromDate={checkFromDate}
where Id is an int and checkFromDate is a Datetime.
When I backend recive these requests from a pc it looks like this:
2012-09-10%2000:00:00
And I’m handling that just fine, but when doing the same request from a mac I get:
2012-09-07%20kl.%2000:00:00%20+02:00
My question is how should I handle this?
From the Silverlight docs:
So this will not be consistent across all your clients (probably has nothing to do with Mac vs PC really).
You need to format the date manually using a fixed format and put that in your URL rather than depending on ToString.