Hunter Walker wrote:

> This is probably an easy one for somebody, but I couldn't figure it out
> using the Date class in the documentation.
>
> How do I return the date for the last day of this month (September in
> this example)?

Easy: Construct a date for the first day of the following month, then
subtract one day and read the resulting components.

Hard: construct a date for the first day of the target month, then add days
unitil the month number changes. Then go back one.


I think I know which option you'll choose. :)

-- 
Paul Lutus
http://www.arachnoid.com