Sitecore 5.0 API

DateUtil.IsoNowTime Property

Gets the current time formatted as ISO time string.

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

Property Value

Now formatted as a ISO formatted time string.

Remarks

The time string is formatted as "HHmmss".

Example

The following example sets isoNow to the ciurrent time in ISO format.

  string isoNow = DateUtil.IsoNowTime;

See Also

DateUtil Class | Sitecore Namespace