0 Replies Latest reply on Dec 8, 2008 9:10 PM by luciewong

    Date - get week day?

    luciewong Level 1
      Hi,
      I had to make an Event-Calendar.

      All works fine - on Press the day, I will get the result:

      9/12/2008

      But I would like to have the Date also in this format:

      Tuesday, December 09, 2008

      I have managed so far to get the result:

      undefined, December 09, 2008

      How could I get the clicked week-day?

      var dayOfWeek_array:Array = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
      var today_date:Date = new Date();
      var day_str:String = dayOfWeek_array[today_date.getDay()];

      But this will give the today day. I need the pressed day

      Thank you for your help.

      Luciewong