I love using the “datetime” type on Data Definitions, but I find myself using it a lot when I just want the date part of it, and not the time part. Add a “date” type that just has the date function.
Also, give the ability to add “datetime” and “date” to Dynamic Metadata so we can have a differently-named date/datetime field in the dynamic metadata (without having to use “Start Date”, “End Date”, or “Review Date”).
4 comments
No attachments
* Note - To input code samples, click the pencil icon (this will remove the WYSIWYG) then be sure to start and end code sections with @@@ (three '@' signs). For more information on textile markup, click here.

We used to have "calendar" as a type in Data Definitions, but we deprecated that for "datetime." You might be able to still use it. The "calendar" type puts the date in the form MM-DD-YYYY instead of a UNIX timestamp.
I never like using "datetime" though. Doing a timestamp conversion in a stylesheet is confusing (even if you use a xalan extension to do the conversion). I could easily do string manipulation on the "calendar" types in XSLT.