You might think the syntax is wrong ! As you can see in the snapshot above however, the syntax is rather correct since the Plus sign invokes the valueOf() of the Date object.
This works with most browsers except IE8 and earlier versions.In this case, you might want to use the following workaround:
If you do not like the output format, you could try out the following command:
Answer due to Daithi.
If you like the content, we would appreciate your support by buying us a coffee. Thank you so much for your visit and support.