Keeper of the Internet, Terrible with words

After deciding that I needed to refocus my learning, I am starting with Vanilla JavaScript. Whilst working on my first little project, I realised that handling dates are not as straight forward as you might expect when it comes to formatting.

Here's two ways we can handle date formatting.

Without a Library:

With a Library (Moment.js -