I have a C# DateTime object. This object includes both the date and time. I need to pass this information to a REST-based service. My question is, how do I format the DateTime,
I'd use yyyyMMdd as the format; doesn't need to be URL encoded and it's easy to read/understand.
yyyyMMdd
On the server side, you'd have to call DateTime.ParseExact(dateString, "yyyyMMdd") to get the date out.
DateTime.ParseExact(dateString, "yyyyMMdd")
Hope this helps.