Thank you all very much for all the code examples. I was struggling with this for a few weeks. Now I can have a relaxing weekend. Hopefully you will do...
This gives me this years data <08/01/2004 but for the data in 2003 it doesn't give me any months past 07/31/2003 so I don't get 8/2003, 9/2003, 10/2003, 11/2003, 12/2003...