1

Topic: Date Picker date ranges

Just experimenting with Date Picker tool on a Form. Date Picker is fine for selecting a date range within a month, or months or years. However I'm looking to enter a day range that spans months: e.g. 03 Mar 2004 - 06 Apr 2004 but this is not accepted.

I've used different formats 03/03/2004 - 06/04/2004 but no luck.

Any solutions on formatting or whether this is infact not possible?

Steve

Steve Roe
Wildfowl & Wetlands Trust

2

Re: Date Picker date ranges

Hi Steve,

Haven't tried that myself. My first thought was to look at http://jqueryui.com/datepicker/#date-range. This looks like it is able to do the kind of thing you want. How does that compare with what you are trying to do?

Jim Bacon.

3

Re: Date Picker date ranges

Hi Steve
Have you tried setting the option for your date controlas follows?

@allowVagueDates=true

The problem is default date picker behaviour is to use jQuery validation for checking the dates, which of course doesn't understand vague dates. One of the effects of this option is to disable the date validation on the client side.

John van Breda
Biodiverse IT