how to get system date in as2


this not working

 


var currdate:date = new date();

txttest.text = currdate; box empty

 

also when find works, parse out yyyy mm , dd

have seen these examples, not sure @ point 1 work or both?

var currentdate=new date();

var month=currentdate.getmonth();

var day=currentdate.getdate();

var year=currentdate.getfullyear();

or

var mm = currentdate.month

var yyyy = currentdate.fullyear

var dd = currentdate.day

 

i need assemble date this: yyyymmdd, using date compares

 


if first code showed not displaying date, problem have done textfield... code works when textfield configured.

 

make sure assigning instance name textfield says instance name in properties panel.  make sure color of text in textfield not same background color.



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues