flex - Find date for same day of the week last year? -


OK, for example, today is Tuesday, February 02. Equal " Tuesday " was held on February 03 last year.

How do I get this program?

Thank you!

Just my two cents I do not like this idea, that second answer eclipsed 52 weeks in a year Does, it will work for a year, but it is only a solution to this exact problem - like If you want to check the same thing after walking after 10 years then this will not work. I want to do this:

  var today: date = new date (); // Here we turn on weekdays var current day: int = today.day; Trace (today); Const Millysands Incade: UIT = 1000 * 60 * 60 * 24; // Here we take a year back, but we can still take 10 years or two months back. Full time - = 1; // Find the nearest date which is the same day of the week as the present day, find Time = = milliseconds indica * (today's day-on-day); Trace (today);  

Returns:

  Tuesday February 2 21:13:18 GMT + 0100 2010 Tue Feb 3 21:13:18 GMT + 0100 200 9 Code> 

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -