dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: how to get the seven days of a weeknumber ?

  1. #1
    Junior Member
    Join Date
    Aug 2009
    Posts
    10

    how to get the seven days of a weeknumber ?

    hi !,

    it's my first participation ton the forum, so i wish you a great life !

    I came from Python programming where functions in Date class are very rich, so i have some problem in Flex/as3 :

    here where i go :

    I search a way (fonction or class or method) to get the seven day for a weeknumber.

    For example, myfunction(34,2009) will return :
    2009-08-17
    2009-08-18
    2009-08-19
    2009-08-20
    2009-08-21
    2009-08-22
    2009-08-23

    any chance that somebody always did that ?


    Thank you for help or read me !

  2. #2

  3. #3
    Senior Member
    Join Date
    May 2004
    Posts
    226
    Are you trying to figure out the day of the week from a date? If so you do:
    PHP Code:
    var date:Date = new Date20000);
    tracedate );
    tracedate.day ); 

  4. #4
    lemon juice hurts your eyes florianvanthuyn's Avatar
    Join Date
    Jul 2005
    Location
    Merelbeke, Belgium
    Posts
    546
    I think he's trying to get the dates of the days located in the 34th week of the year 2009 (therefore 7 results).
    Or in general a function or class that returns 7 dates from the given week in the given year.
    Florian Vanthuyne

    WAR AGAINST SOLVED THREADS
    mark yours as Resolved under Thread Tools!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center