lundi 21 décembre 2015

as3 - Adding one month

I'm working currently with actionscript 3 and found out, that it always displays one month less than it actually is (currently it displays "21.11.2015", but should display "21.12.2015"). That's why I wanted to know the command for adding "1" to my "my_date.month". I didnt post the code with date and year, just with the month. Thanks in advance.

function onTimer(e:TimerEvent):void {
my_date = new Date();
tag.text = "" +my_date.month);  
}

Aucun commentaire:

Enregistrer un commentaire