JavaScript Date toLocaleString() Method

Below is the example of Date toLocaleString() method.