Sitecore 5.1.1 API

State.PreviewDate Property

Gets or sets the current date/time of a preview.

[Visual Basic]
Public Shared ReadOnly Property PreviewDate As Date
[C#]
public static System.DateTime PreviewDate {get;}

Property Value

The date/time of the preview.

Remarks

When a preview is generated, it reflects the web site at a certain date and time. This date and time is specified in this State variable.

See Also

State Class | Sitecore.Configuration Namespace | PreviewGroups