My code starts off by setting these 3 variables
var1 = 'Sep20'
var2 = '2020 09'
var3 = '2020-10-01'
How do I code such that var2 and var3 are functions of var1, so that I only have to set 1 variable? I would like to enter a string value for var1 and have var2 & var3 automatically calculated
Another example for a different month:
var1 = 'Dec20' # a given month MMM YY
var2 = '2020 12' # the same month YYYY MM
var3 = '2021-01-01' # the first day of the NEXT month YYYY-MM-DD