loading...

re: Handling Dates in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: you might also like to have a look at the JS date and time formatting functions new Date().toLocaleDateString("en-GB", options); new Date().toLoca...
 

toLocaleDateString actually has lots of options to format dates.

It's also sensitive to locale, which is handy for formatting dates in any format in the world almost.

code of conduct - report abuse