I am using an API that requires date inputs to come in the form 'YYYY-MM-DD'
- and yes, that's a string.
I am trying to write an iterative program that will cycle through some temporal data. The interval will always be one month.
Is there a nice way to convert a Python date object into the given format? I considered treating the year, month and day as integer inputs and incrementing the values as needed, but that's rather inelegant and requires significant if\elif\...\else
programming.