If you want to get Day, Month and Year separate then you can use the following code.
The toLocaleDateString() method returns a string with a language sensitive representation of the date portion of the specified date in the user agent's timezone.
The toISOString() method returns a date object as a string, using the ISO standard. The standard is called ISO-8601 and the format is: YYYY-MM-DDTHH:mm:ss.sssZ.
Detailed date format
You can try this detailed date format like day name , month name etc.
Finally, you can use a single line code using JSON for getting the current date.
Moreover, you can use Date.js library which extends Date object , thus you can have .today() method.