SPFieldDateTime Methods

Include Protected Members
Include Inherited Members

The SPFieldDateTime type exposes the following members.

Methods

  Name Description
Public method Delete Deletes the field. (Inherited from SPField.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetCustomProperty Gets the value of custom property with the specified name. (Inherited from SPField.)
Public method GetFieldValue Converts the specified value into a field type value object when the field type requires a complex data type that is different from the parent field type. (Overrides SPField.GetFieldValue(String).)
Public method GetFieldValueAsHtml(Object) Gets the field value in HTML format in order to render the field value directly on the page. (Inherited from SPField.)
Public methodStatic member GetFieldValueAsHtml(DateTime, SPWeb, SPDateFormat) Returns the field value in HTML format based on the specified DateTime value, Web site, and date format in order to render the field value directly on the page.
Public method GetFieldValueAsText(Object) Returns the specified field data value, expressed in Coordinated Universal Time (UTC) format, as a string. (Overrides SPField.GetFieldValueAsText(Object).)
Public methodStatic member GetFieldValueAsText(DateTime, SPWeb, SPDateFormat) Returns the specified field data value, expressed in Coordinated Universal Time (UTC) format, as a string based on the specified date and time value, parent Web site, and SharePoint Foundation date format.
Public method GetFieldValueForEdit Gets the field value that is rendered in Edit mode in Edit and New forms. (Inherited from SPField.)
Public method GetHashCode (Inherited from Object.)
Public method GetProperty Gets the value of the specified property. (Inherited from SPField.)
Public method GetType (Inherited from Object.)
Public method GetValidatedString Converts the field value object into a validated, serialized string. (Overrides SPField.GetValidatedString(Object).)
Protected method HasValue Internal function used to verify whether an object is null or not. (Inherited from SPField.)
Public method ListsFieldUsedIn Returns information about the Web sites and lists in which the current field is used. (Inherited from SPField.)
Protected method MemberwiseClone (Inherited from Object.)
Public method OnAdded Handles the event that occurs after a field is added. (Inherited from SPField.)
Public method OnAddingToContentType Handles the event that occurs when a field is added to a specified content type. (Inherited from SPField.)
Public method OnDeleting Handles the event that occurs when a field is being deleted. (Inherited from SPField.)
Public method OnDeletingFromContentType Handles the event that occurs when a field is deleted from a specified content type. (Inherited from SPField.)
Protected method OnInitFieldNode This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from SPField.)
Public method OnUpdated Handles the event that occurs after changes are made to a field. (Inherited from SPField.)
Public method ParseAndSetValue Parses and sets the field value. (Overrides SPField.ParseAndSetValue(SPListItem, String).)
Public method SetCustomProperty Sets a value for the specified property. (Inherited from SPField.)
Public method ToString Returns the title of the field. (Inherited from SPField.)
Public method Update() Updates the database with changes that are made to the field. (Inherited from SPField.)
Public method Update(Boolean) Updates the database with changes that are made to the field and optionally propagates the changes to lists that implement the field. (Inherited from SPField.)

Top

See Also

Reference

SPFieldDateTime Class

Microsoft.SharePoint Namespace