Jump to content


Get the number of the day in the year.


  • You cannot reply to this topic
2 replies to this topic

#1 magneto_m

    Young Padawan

  • Members
  • Pip
  • 33 posts

Posted 17 April 2006 - 01:02 PM

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.

#2 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

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:

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 travmanx

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 17 April 2006 - 07:57 PM

View Postfunkysoul, 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:

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