Hi. I have a Drafts 5 action that, along other things, needs to convert a long date (“August 29, 2019”) into a short date more appropriate to use as a filename (“2019-08-29”).
In python I could use datetime.strptime() to turn the long date into a date object, the. Use strftime() to reformat it to a short date.
I see that JS in Drafts has strftime. Any suggestions for converting “August 29, 2019” into something strftime will recognize as a date?