This page demonstrates a couple of techniques for formatting and displaying dates - times.

Hopefully it will be helpful and/or interesting !!

Sometimes it gives a JavaScript error on first loading
I don't know why
Simply Reload/Refresh the page and then it is OK.
Remember it is just a demonstration of Techniques !!