I've always liked SQL date and string functions so I made a library for Javascript with most of your favorite databases' Date and String functions. There is also a Playground to try each function and see the documentation.