Board Logo

set available date from currentday to end of year
blekm - 5/17/2007 at 02:12 PM

I use this constructor for my calendar

var CAL_INIT1 = {
'forbidden' : {
'weekday' : ['Mon']
},
'mindate': '01-01-2007',
'maxdate': '31-12-2008',
'controlname' : 'controlname1',
'formname' : 'orderform',
'dataformat' : 'd-m-Y'
}

can I use on MINDATE the current day?
Something like this:

'mindate': 'TODAY',
'maxdate': '31-12-2008',

in this way I set available only future date from current day to end of 2008...


tigra - 5/21/2007 at 07:20 PM

That will be:
'mindate': '0',


blekm - 2/13/2009 at 02:56 PM

Quote:
Originally posted by tigra
That will be:
'mindate': '0',


and If i want to change the END of the year like a parameter? it's possibile something like this?

'maxdate': '31-12-CURRENT_YEAR',

where current year is 2009, now.. it's possible something like this in automatic? In this way I don't must change the year manually every december... :-(


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/