Can we have a default option "absolute" in addition to 'blank', 'now', or 'relative'?

For examply, I would like to set the default value for a date field to, say 25 December 2008. I don't see how that is possible with the current options?

Comments

karens’s picture

Version: 5.x-2.x-dev » 6.x-2.x-dev

Moving D5 feature requests that aren't going to get into the initial official 5.2 release to be D6 feature requests that could potentially be backported to D5.2.

miiimooo’s picture

subscribing

attiks’s picture

Anyone already working on this?

julou’s picture

subscribing +10

btw, the use of relative with a constant sfrtotime value would already be a turn around.
but it unfortunately does not work.

daninfpj’s picture

subscribing.

"Common sense" and yes, it should at least work with strtotime (something like '1 January 1990'), but it doesn't.

mandclu’s picture

Subscribing. Has anyone figured out why a valid date string doesn't work?

Melissamcewen’s picture

Subscribing and +1. On the site I'm building now, which is a conference site with specific dates, this would be very useful...

arlinsandbulte’s picture

mandclu’s picture

Status: Closed (duplicate) » Active

I don't consider this issue a duplicate at all. That thread talks about a more advanced way to specify the relative value, which is not what is being discussed here. Allow me to cite a specific example.

I'm currently working on a site for a fair which runs for 10 days. I would like the date value to default to the start time of the fair, so that if you are adding a new event you always begin within the fair's run, regardless of when the event is being entered (could be anywhere from 6 months to two weeks before the start of the fair).

The third choice being discussed in that thread is still relative to the time of entry, not the fixed date date option being requested here.

arlinsandbulte’s picture

@surge_martin:
Yes, I see your point, and it is a valid one.

But, rather than duplicate, I think these two issues should be merged, providing a simpler, more elegant, & more robust solution for both issues (killing two birds with one stone).
Both issues could be solved if we changed the choices to only two:
'blank' or 'enter a date string'

That 'date string' could be any valid strtotime string like:
now
now + 1 week
Last Thursday
July 10, 2010 <- this is an exact date just like what you want.

So, that is my reasoning and why I think this should be considered as a duplicate of that issue.
What do you think?

mandclu’s picture

If you would update the title of the other issue to acknowledge that accepting a specific date (as part of support for an arbitrary date string) is one of the goals of the feature request, then I will absolutely agree that the two issues can be merged.

Just want to make sure we don't lose track of the actual intent here.

arlinsandbulte’s picture

arlinsandbulte’s picture

Status: Active » Closed (duplicate)