Create a Date object is by passing it a string representing a time. : Date : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Date »

 

Create a Date object is by passing it a string representing a time.


 
  

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        new Date("1/28/2007")// United States style MM/DD/YYYY
        new Date("Sun Jan 28 2007");
        new Date("28 Jan 2007");
        new Date("Sun Jan 28 2007 3:16:12 PM");

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Development
» Date