How to format a date in JavaScript

Given a Date object: there are lots of methods that will generate a string representing that date. There are a few built-in ones.

Actions
Connections