Add "date" version of "datetime" field, add both to Dynamic M...

Favorite-off Notification-off
25 Thumb-up Thumb-down
Idea by jklingman about 1 year ago Favorite-off - Open

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

  • 0 points Thumb-up Thumb-down Favorite-off by syl.turner about 1 year ago Permalink
    I like this idea a lot!

    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.

  • 0 points Thumb-up Thumb-down Favorite-off by TimothyGilman about 1 year ago Permalink
    We use the "calendar" type in many Data Definitions, because we often need just a date, and don't use the time, even if it was included.  The "datetime" type has an advantage in that it is easy to sort on that field without doing any string manipulation beforehand, as is necessary to sort by the date from a "calendar" type.
  • 0 points Thumb-up Thumb-down Favorite-off by jklingman about 1 year ago Permalink
    I agree, TimothyGilman.  I prefer to use the "datetime" function (already have code written to translate it into mm/dd/yyyy format), so I'd like to see this kept, but add in just a "date" one that simply removes the time part of it.
  • 1 point Thumb-up Thumb-down Favorite-off by mediagrif 5 months ago Permalink
    A date type Dynamic Metadata Field would be really usefull. I need some personalised date field and I can't put this in the data definition because I would have to index ALL content Inline.

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.  

Sign in

Follow us on Twitter