[Tutor] Subract Month From Date

Gooch, John John.Gooch at echostar.com
Tue May 3 18:57:34 CEST 2005


What would be the simplest way to extract the Month and Year for one month
prior to the current month? I have been looking for a way to create a Date
object with the current date, and then subtract a month from it. Say it is
currently "January 1st, 2005", I would like to be able to subtract a month
and get "December 1, 2004". 

For the code I am working with I am only interested in the Month and the
Year. Is there a way to use datetime or date modules to do this? Or perhaps
I need to use a different module? 

Thank You, 


John A. Gooch
Systems Administrator
IT - Tools
EchoStar Satellite L.L.C.
9601 S. Meridian Blvd.
Englewood, CO  80112
Desk: 720-514-5708 



More information about the Tutor mailing list