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,
Just use ToString() and pass a format e.g.: startDate.ToString("yyyyMMddHHmmss")
And parse it back by using DateTime.ParseExact()