hi..is there anyway of getting the number of the current day in an year..?
For eg: For February 13th I want the number 44 to be displayed.(44=31+13)
Can you help..?
Thanx.
Get the number of the day in the year.
Started by magneto_m, Apr 17 2006 01:02 PM
2 replies to this topic
#1
Posted 17 April 2006 - 01:02 PM
#2
Posted 17 April 2006 - 04:00 PM
I don't get it dude.. why 44 and why 31?...
anyways there is a date Class in flash which you can access with:
anyways there is a date Class in flash which you can access with:
var my_date:Date = new Date(); trace(my_date.getFullYear); //returns the year 4digits eg. 2006 trace(my_date.getDay); //returns a number between 0 and 6 0=sunday 6=saturday
#3
Posted 17 April 2006 - 07:57 PM
funkysoul, on Apr 17 2006, 08:59 PM, said:
I don't get it dude.. why 44 and why 31?...
anyways there is a date Class in flash which you can access with:
anyways there is a date Class in flash which you can access with:
var my_date:Date = new Date(); trace(my_date.getFullYear); //returns the year 4digits eg. 2006 trace(my_date.getDay); //returns a number between 0 and 6 0=sunday 6=saturday
I think he means
day = todays date (13)
daysinmonth = (31)
but feb only has 28-29....
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
