it's the first time I have to deal with localization in JS. Turned out JS has not something like PHP's date time format ($date->format('Y-m-d H:i:s')
). Yes, it has format()
but this method has no arguments.
I have no idea what to do know. I need to set a format string and I am shocked that there is no native support for this.
Solutions? Any JS libs that solve it?