Selective implementation of strftime
This is an implementation of Unix strftime
for JavaScript Dates supporting only American English (en_US). Not all format options are implemented.
I only had use cases for formatting in American English (en_US) for this function and most conversion characters are also implemented based on use cases I had.
It would be possible to adapt this to support a different language or multiple languages but I have no use cases for this. Feel free to use this code any way you like. I just copy this into projects and adapt it to the project specific needs, this is just a capture of the code at a certain point in time.