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.
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 Custom Products module: Create the backend definitions.
To include a DateField, use the following code:
var eventStart =
DisplayMode = displayMode,
WrapperTag = HtmlTextWriterTag.Li,
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 CMS 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.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2020 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity