Date
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%2F2945122355-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmmtM2UdX1OOMSi0CksPv%252Fuploads%252Fgit-blob-c0c5dfb8d605562cf251c63c6a6710cf66db10b2%252FDateTime-DataType.png%3Falt%3Dmedia%26token%3Df73e7f4b-a6ee-42e4-8f7d-04ea80cb64cc&width=768&dpr=4&quality=100&sign=935541ad&sv=1)
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%2F2945122355-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmmtM2UdX1OOMSi0CksPv%252Fuploads%252Fgit-blob-1ebdd54aaaabd65df5aadf81ac0d1155db2b5d88%252FDate-Time-Content.png%3Falt%3Dmedia%26token%3Def653b20-3c74-41cc-bdd6-961b108f3978&width=768&dpr=4&quality=100&sign=f41cd6ab&sv=1)
MVC View Example - displays a datetime
Typed
Dynamic (Obsolete)
See Common pitfalls for more information about why the dynamic approach is obsolete.
Last updated