Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Real difficult one!!!!


Message #1 by "Al Higgs" <al.higgs@b...> on Fri, 1 Mar 2002 00:13:15
Yup...

You need to pick a year to start with..

Then begin with jan 1st
Incrementally add 1 day to the date and test to see if it's a Saturday
If not, add 1 day agin...
If it is a Saturday, add it to the listbox.
Add 7 days.... add to list box
Add 7 days .... addto list box

Repeat until the year of the calculated date is greater than the year of
the start date

-----Original Message-----
From: Al Higgs [mailto:al.higgs@b...] 
Sent: Friday, March 01, 2002 12:13 AM
To: javascript
Subject: [javascript] Real difficult one!!!!

Hello,

I've got a real challenge for any javascript developers, it might be 
beyond the call of helping me out, if so dont bother, if someone thinks
it 
easy please let me know....

I need to populate a drop down box with the date of every saturday in
the 
year, in the following format 07/01

Of course i could look at the calendar and work this out, but then next 
year it would be invalid.

Does anyone know if this is possible??

Thanks

Al
$subst('Email.Unsub').


  Return to Index