Hi, I am a complete noob to JavaScript and the following problem has been drivin g me nuts all day. Basically I have a list of variables, they all have a date set inside them, and hour via setFullYear, and setHours.
OK now how do i order these from say 1 to 10, and have it cycle through an IF Else Statement and check if the date is past a certain date, then go onto variable 2, check again and go onto variable 3 until it finds a match.
An Array would be ideal i guess but i don’t know how to create an array with dates inside them? Is this possible?
Or does anybody know how I can cycle through my variables without an array in the form of i++ say.