Here is the code I am trying
public static const millisecondsPerDay:int = 1000 * 60 * 60 * 24
var sixMonthsInMilis:int = 182 * millisecondsPerDay;
var sixMonthsInTheFuture:Date = new Date();
sixMonthsInTheFuture.setTime(sixMonthsInTheFuture.getTime() + sixMonthsInMilis );
var sixMonthsInThePast:Date = new Date();
sixMonthsInThePast.setTime(sixMonthsInThePast.getTime() - sixMonthsInMilis);
The one thats meant to be in the past is a few days in the future, the other a few days in the past. A far cry from the 6 months I am after
Any Ideas?
For me, this returns
Which seems fair enough, right?