ScotDiddle
Member
Posts: 24
Registered: 11/28/2007
Location: Richmond, VA
Member Is Offline
|
| posted on 3/27/2009 at 11:22 AM |
|
|
[SOLVED] Yet another date-range question....
Hi All,
My graphing application works fine, except when the user wants to graph more than 30 days worth of data to display... ( PHP runs out of memory )
If allowed dates include all 365 days in 2008, and the user selects Jan 1 as the starting date, how can I ensure that the date-ending calandar ( a
second calandar object ) has every dated after Jan 31, 2008 dis-allowed ?
How can I set : 'maxdate': 01/31/2008' progrmatically for the second calendar when the user selects a starting date in the first calendar ?
I am currently using the softcomplex.com supplied date-range function...
| Code: |
function setDateRangeAOR1() {
if(showMeDaMoney) {
alert('In: setDateRangeAOR1 for AOR1Start and AOR1End');
alert(AOR1Start.TC0L);
alert(AOR1End.TC0H);
}
tomorrow = AOR1Start.TC0L.valueOf() + 864e5;
AOR1End.TC0H = AOR1Start.TC0L;
if (AOR1Start.TC0L > AOR1End.TC0L) {
AOR1End.TC0L = tomorrow;
}
AOR1End.TC2D();
}
|
Is this even possible ?
Thanks,
Scot L. Diddle, Richmond VA
|
|
|
ScotDiddle
Member
Posts: 24
Registered: 11/28/2007
Location: Richmond, VA
Member Is Offline
|
| posted on 3/30/2009 at 05:00 PM |
|
|
[SOLVED] Yet another date-range question....
Hello All You Tigra Calendar Enthusiasts,
My help-desk ticket was answered in a timely manner.
I was defining my maxdate parm as an integer:
twoWeeksFromNow = AOR1SingleStart.TC0L.valueOf() + (14 * 864e5);
They said I had to define it as a date...
twoWeeksFromNow = new Date(AOR1SingleStart.TC0L.valueOf() + (14 * 864e5));
I then pass that value, and the second date range cal maxdate is equal to two weeks out from whatever the user selected as thier starting date
!
AOR1SingleEnd.TC0F = twoWeeksFromNow;
Worked like a champ.
Thanks Tigra Admin.
Scot L. Diddle, Richmond VA
|
|
|
|