Great post! π Keep on writing!
I definitely agree with you that you shouldn't blindly copy-and-past the code you find on stack overflow. It's good that people find their answers but also to learn to under stand the code π.
My favorite JavaScript date library is Date- fns because it's modular and not big to include π