title: JS: How to format date and time string?
body: <p>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 (<code>$date-&gt;format('Y-m-d H:i:s')</code>). Yes, it has <code>format()</code> but this method has no arguments.</p>
  
  <p>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.</p>
  
  <p>Solutions? Any JS libs that solve it?</p>