I have this date here:
DateTime RelevantDate = new DateTime(2017, 11, 13, 16, 0, 0, 0);
request.RelevantDate = Convert.ToDateTime(RelevantDate.ToString("o"));
and I am expecting:
2017-11-13T16:00:00-05:00
Instead I am getting:
2017-11-13T16:00:00
This really needs to be in this format: 2017-11-13T16:00:00-05:00, how can I do that? request.RelevantDate is expecting DateTime
If I do this:
request.RelevantDate = Convert.ToDateTime(DateTime.Now.ToString("o"));
it gives me the correct format:
2017-11-08T06:43:39-05:00