forked from: 1桁の月や日を0Xの形に
/**
* Copyright bkzen ( http://wonderfl.net/user/bkzen )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/35Co
*/
// forked from zahir's 1桁の月や日を0Xの形に
package {
import com.adobe.utils.DateUtil;
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var d:Date = new Date();
(addChild( new TextField()) as TextField).text =
DateUtil.toW3CDTF(d).substr(0, 10).replace(/-/g, "");
}
}
}