Hussein B wrote:

> Hey,
> I'm creating a report that is supposed to harvest the data for the
> previous month.
> So I need a way to get the first day and the last day of the previous
> month.
> Would you please tell me how to do this?

First day: create a new date-object with the day==1.

Last day: create a date-object with month + 1 and day==1, and subtract a
timedelta with one day of it.

Diez
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to