Basic Array Help Please

Discussion in 'JavaScript' started by wd_2k6, Apr 21, 2008.

  1. #1
    Hi, is it possible to put the following into an array?

    var one=new Date();
    gameCh.setFullYear(2050,01,20);
    gameCh.setHours(12,15)

    var two=new Date();
    gameBir.setFullYear(2010,00,22);
    gameBir.setHours(12,00)

    var three=new Date();
    gameChe.setFullYear(2150,07,30);
    gameChe.setHours(12,00)

    What i need this for is that I need a list of set dates and times that I can cycle through and increment through the array and compare to today's date.
    EDIT: Maybe i could assign a Numerical value instead of the date, do dates have numerical values, how can i find them out?
     
    wd_2k6, Apr 21, 2008 IP