2 Replies Latest reply on Aug 2, 2010 4:49 AM by rootsounds

    Problem of Flex Date.toUTCString();

    ruoyang Level 1

      I used the date.toUTCString function but the returned result is always one month later than the time I need.


      For examle, I used " var date:Date=new Date();

                                    var date.setUTCMonth(7);

                                     var str:String=date.toUTCString();"


      The UTC month value of the date is 7, so the month value in str is supposed to be "July". But I got the value "Aug" in str instead...


      So what happended here? Does this related to my system time or browser?