If you want to know the last day of the previous month, you use something like this: DateSerial(2004, 3, 0)
In this case, you get the date 29 February 2004
If you use this: DateSerial(2004, 9, 0)
you get 31 August 2004. Try it.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|