Create date fields

To learn more about the different steps to create a custom field, read the For developers: Create custom fields for product types article.

Here is a list of the things that are specific for the short text field:

  • Field CLR type: typeof(DateTime?).FullName
  • User friendly data type: UserFriendlyDataType.Date
  • DB type: DATE
  • Field type: typeof(DateField).FullName

Use the following code example:

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?