Sitecore 5.0 API

DateUtil Methods

The methods of the DateUtil class are listed below. For a complete list of DateUtil class members, see the DateUtil Members topic.

Public Static (Shared) Methods

DateTimeToMilitaryConverts a DateTime class to an military formatted date/time string.
FormatIsoDateOverloaded. Formats an ISO formatted date/time string to long date/time string.
FormatLongDateTimeFormats a date in a long format.
FormatShortDateTimeFormats a date in a short format.
GetIsoDatePartsGets the parts of an ISO formatted date/time string (Year, Month, Day, Hour, Minute, Second).
GetShortIsoDateTimeOverloaded. Gets the time of the short iso date.
IsIsoDateDetermines if a string is an Iso date.
IsoDateToDateTimeOverloaded. Converts an ISO formatted date/time string to a DateTime class.
IsoDateToNormalConverts an ISO formatted date/time string to a string with the format "yyyy-mm-dd hh:mm:ss".
ParseDateTimeOverloaded. Parses a string into a DateTime structure.
ParseTimeSpanOverloaded. Parses a time string representing a time span.
TimeSpanToIsoTimeConverts a TimeSpan into a Iso date string.
ToIsoDateConverts a DateTime class to an ISO formatted date/time string.

Public Instance Methods

Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

DateUtil Class | Sitecore Namespace | FileUtil | MainUtil | HtmlUtil | SqlUtil | StringUtil | WebUtil | XmlUtil