Converts a DateTime class to an ISO formatted date/time string.
The ISO formatted date/time equivalent of the DateTime class.
The date/time string is formatted as "yyyyMMddTHHmmss".
The following example returns Now formatted as an ISO date.
return DateUtil.DateTimeToIsoDate(DateTime.Now);
DateUtil Class | Sitecore Namespace