Get date and month from a Date object : Date : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Date »

 

Get date and month from a Date object


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var now = new Date(  );        
        
        var day = now.getDate(  );     
        var month = now.getMonth(  );  // Returns an integer between 0 and 11
        
        trace(day);
        trace(month);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» Date