From the following dates how to get months and year using python
dates are
"2011-07-01 09:26:11" //This showud display as "This month"
"2011-06-07 09:26:11" //This should display as June
"2011-03-12 09:26:11" //This should display as March
"2010-07-25 09:26:11" // Should display as last year
Please let me know how to get these formats using python 2.4
When I have a date variable[with same format] in pandas dataframe, how to perform this ?