Python Quick Reference from Create Daily Links Text

Month List: index starts at 1

compatible with datetime module date.month

monthList[0] is an empty string

 

Weekday List:  index starts at 0

compatible with datetime module date.weekday()

Using isoweekday()? get the list here

 

Python String Lowercase

use “.lower()” example dayName.lower()

 

Python String Replace

str.replace(old, new[, max])

str.replace(” “,”-“)

 

Python String  Range Slice (Trim)

 

Python datetime double digit month and day values

 

Python Print Newline