ScheduledItem.EndDate property

Gets or sets the Coordinated Universal Time (UTC) at which this ScheduledItem class ends and is no longer visible on the published site.

Namespace:  Microsoft.SharePoint.Client.Publishing
Assembly:  Microsoft.SharePoint.Client.Publishing (in Microsoft.SharePoint.Client.Publishing.dll)

Syntax

'Declaration
Public Property EndDate As DateTime
    Get
    Set
'Usage
Dim instance As ScheduledItem
Dim value As DateTime

value = instance.EndDate

instance.EndDate = value
public DateTime EndDate { get; set; }

Property value

Type: System.DateTime
The Coordinated Universal Time (UTC) at which this class ends and is no longer visible on the published site.

Remarks

A value of January 01, 2050, indicates that an instance of the ScheduledItem class is no longer visible on the published site. If the end date is set to this value, the property is displayed by using the string "Never" in the corresponding user interfaces.

To save changes after setting this property, call the ScheduledItem.ListItem.Update method.

The date and time returned by this property can be converted from UTC to local time in server-side code by using SPRegionalSettings.TimeZone.UTCToLocalTime(DateTime)method.

The user must have edit permissions on the PublishingPage to set this value. The user must have view permissions on the PublishingPage to initially retrieve it and get any of its property values.

See also

Reference

ScheduledItem class

ScheduledItem members

Microsoft.SharePoint.Client.Publishing namespace