I need a DateTime.Now value in round trip format without utcOffset. Based on this MSDN article, if you create a new DateTime instance without UtcOffset, it creates the format I want.
DateTime date1 = new DateTime(2008, 4, 10, 6, 30, 0);
but if I use DateTime.Now, I get the offset in the line:
DateTime.Now.ToString("o")
I could just use a substring or populate a DateTime instance without it, but I was wondering if there is a way to remove UtcOffset.
source share