Categories
Uncategorized

Range of Dates – Python

This short script will help you create a range of dates that look like this 201203,201205,201306….

Categories
Uncategorized

Formatting Dates – Python

We have a date like this 3rd April 2013 and we want to change it to this 2013-04-03 We can change the date format using the datetime module. In this module we can use strptime( ) to tell Python that the string is a date, and then strftime( ) to change the date to the […]