Gets the parts of an ISO formatted date/time string (Year, Month, Day, Hour, Minute, Second).
An integer array containing the parts of the date. If the date/time is not valid, null is returned.
The integer array contains the following parts:
The date/time string is formatted as "yyyyMMddTHHmmss".
The following example returns the month of an ISO date/time.
string isoNow = DateUtil.IsoNow; int[] parts = DateUtil.GetIsoDateParts(isoNow); return parts[1]; // month
DateUtil Class | Sitecore Namespace