I need to ParseCurrent time to sortable dateFormat which is stated below.
THis dateFormat is working in another part of application where I am getting time string right from the server, but when I need to use current time it gives me an exception. Anybody any suggestion please?
string dateFormat = "yyyy-MM-ddTHH:mm:ss.fffzzz";
updateBook.orderFrom = DateTime.ParseExact(DateTime.Now.ToString(), dateFormat, CultureInfo.InvariantCulture);
Thanks for help.
Try