Construct string object from a date type value : Convert to String : Data Type Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Data Type » Convert to String »

 

Construct string object from a date type value


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var dToday:Date = new Date();
        var sDate:String = new String(dToday)
        
        trace(sDate);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Data Type
» Convert to String