Working with DateField
DateField is used to display and edit fields of type DateTime. While displaying a date, you can control the format in which it is displayed. While editing, you can use a date picker.
DateField in Read mode, used in the widget template for Events.
DateField in Write mode, used in the backend form for creating an event.
Using DateField in your static module through definitions
When you are using static modules with normal C# or VB classes as your data model, you can include a definition for DateField for a property in your class of type DateTime. For more information on how to use definitions, you can read Creating the backend definitions.
To include a DateField, use the following code:
var eventStart =
DisplayMode = displayMode,
WrapperTag = HtmlTextWriterTag.Li,
Use DateField for a dynamic field
You can also use DateField in a custom field that you create through the user interface. You can do that in the built-in Sitefinity modules (static and dynamic), as well as in your custom modules. When you are creating the custom field through the UI, you should select type Date and Time, as well as specify a custom widget for entering data. The type that you need to use is Telerik.Sitefinity.Web.UI.Fields.DateField.