Converts an ISO formatted date/time string to a string with the format "yyyy-mm-dd hh:mm:ss".
The formatted date/time. If the ISO formatted date/time is not valid, blank is returned.
The date/time string is formatted as "yyyyMMddTHHmmss".
The following example formats an ISO formatted date/time string to a "yyyy-mm-dd hh:mm:ss" string.
string isoNow = DateUtil.DateTimeToIsoDate(DateTime.Now); string now = DateUtil.IsoDateToNormal(isoNow);
DateUtil Class | Sitecore Namespace