I've used this. Peter's way looks to work too, the only difference I see is you don't need to import calendar but really they both do the same thing. def last_day_of_month(any_day): # this will never fail # get close to the end of the month ...
Hey, not sure if you got that sorted out. Maybe post a sample line with an example of what you'd like. ------------------------------ Peter Sykes Data Governance & Architecture Vontobel Holding AG Zurich ------------------------------
Try this, unfortunately python 2.7 doesn't have a timedelta with months. Test it a bit though. ------------------------------ Peter Sykes Data Governance & Architecture Vontobel Holding AG Zurich ------------------------------
Terms of UseLegalPrivacy NoticesTrademarks Your Privacy ChoicesCalifornia Privacy NoticesCookie Settings