Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Heather Floyd 610 posts 1032 karma points MVP 6x c-trib
    May 08, 2010 @ 01:49
    Heather Floyd
    0

    Idea for Inserting Current Date

    This is such a great addition to umbraco. The only thing missing is the ability to insert "today" as the default date into a Date field. Since the Date Datatype requires a valid date in order to save, the provided $date$ variable doesn't work, but what if we could use a "code" date which your software would convert to "today" on creation of a new document?

    Now, I haven't examined your source code to see if this sort of intervention is possible, but if it is, perhaps that generic date "1900-01-01" could be used?

    So, if someone wanted to specify that the Standard value for a date field should be "today", they would just put in "1900-01-01".

    I ikmagine that it is a safe bet that no one really wants to use 1900-01-01 as a date for their content, but if you think that could be a problem, make the actual date value configurable, like the date format is.

    Just a thought.

    ~Heather

  • Mike Taylor 155 posts 353 karma points
    Oct 14, 2010 @ 13:19
    Mike Taylor
    0

    +1 for being able to have today's date as default in a Date Picker field - would be very useful!

    Mike

  • Rich Green 2246 posts 4008 karma points
    Oct 14, 2010 @ 13:47
    Rich Green
    0

    Edit: Sorry didn't see which forum this was in! Thought Standard-values-in-Umbraco would do this already...

  • Mike Taylor 155 posts 353 karma points
    Oct 14, 2010 @ 13:49
    Mike Taylor
    0

    That's what I'm trying to use - you can't enter "$date$" in a Date Picker field though.

    Mike

Please Sign in or register to post replies

Write your reply to:

Draft