Share via


SPFieldDateTime Class

The SPFieldDateTime class represents a field that contains date and time values.

System.Object

   Microsoft.SharePoint.SPField

      Microsoft.SharePoint.SPFieldDateTime

Public Properties

The following table shows the public properties of the SPFieldDateTime class, the data type of each property, and a brief description of each.

Name Data Type Description
CalendarType Microsoft.SharePoint.SPCalendarType Gets or sets the type of calendar that is used to display the field.
DisplayFormat Microsoft.SharePoint.SPDateTimeFieldFormatType Gets or sets the type of date and time format that is used in the field.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.

Remarks

Setting properties of the SPFieldDateTime class requires that the Update method be called for changes to take effect in the database.

Requirements

Namespace: Microsoft.SharePoint

Platforms: Microsoft Windows Server 2003

Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)

Security: Code Access Security