Formats an ISO formatted date/time string using a specified format.
The formatted date/time. If the date/time string is not valied, blank is returned.
The format is specified using .NET formatting codes. See here for more information.
The date/time string is formatted as "yyyyMMddTHHmmss".
The following example returns Now formatted as a short date pattern.
string isoNow = DateUtil.DateTimeToIsoDate(DateTime.Now); return DateUtil.FormatIsoDate(isoNow, "d");
DateUtil Class | Sitecore Namespace | DateUtil.FormatIsoDate Overload List