12 Hour Time Format In Javascript, The 2 arguments Locale and options allow for customization of the behaviour .