1 Reply Latest reply on Sep 16, 2008 7:53 AM by davidmartinomalley

    I want the minimum of the horizontal axis to be the first day of the month.

    nikos101 Level 2
      I have a situation where I want the minimum of the horizontal axis(with date time axis) to be the first day of the month. I attempt it like so:

      var max:Date = new Date();//current date is our max from which we will calculate the min
      var min:Date = new Date(max.fullYear,max.month,1);
      dateTimeAxis.minimum = min;

      However this first date on this axis is the last day of the previous month for example 31 August instead of 1 September. Any ideas how to fix?