Sitecore 5.1.1 API

DateUtil.IsoNow Property

Gets the current time formatted as ISO date/time string.

[Visual Basic]
Public Shared ReadOnly Property IsoNow As String
[C#]
public static string IsoNow {get;}

Property Value

Now formatted as a ISO formatted date/time string.

Remarks

The date/time string is formatted as "yyyyMMddTHHmmss".

Example

The following example sets isoNow to now in ISO format.

  string isoNow = DateUtil.IsoNow;

See Also

DateUtil Class | Sitecore Namespace