Date
Schema Alias: Umbraco.DateTime
UI Alias: Umb.PropertyEditorUi.DatePicker
Returns: Date
Displays a calendar UI for selecting dates which are saved as a DateTime value.
Data Type Definition Example
![](https://docs.umbraco.com/~gitbook/image?url=https%3A%2F%2F3701346516-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FG1Byxw7XfiZAj8zDMCTD%252Fuploads%252Fgit-blob-c0c5dfb8d605562cf251c63c6a6710cf66db10b2%252FDateTime-DataType.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=d7622f98&sv=2)
The only setting that is available for manipulating the Date property is to set a format. By default the format of the date in the Umbraco backoffice will be YYYY-MM-DD
, but you can change this to something else. See MomentJS.com for the supported formats.
Content Example
![](https://docs.umbraco.com/~gitbook/image?url=https%3A%2F%2F3701346516-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FG1Byxw7XfiZAj8zDMCTD%252Fuploads%252Fgit-blob-1ebdd54aaaabd65df5aadf81ac0d1155db2b5d88%252FDate-Time-Content.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=7f2284b7&sv=2)
MVC View Example - displays a datetime
Typed
Dynamic (Obsolete)
See Common pitfalls for more information about why the dynamic approach is obsolete.
Last updated