I'm using Moment JS to try and convert a human readable date into something more useful for a computer/JS to understand, given the following Strings as example, my Moment JS doesn't appear to convert them:
const exampleDate = '1st January 2019'
moment(exampleDate).format('DD-MM-YYYY')
It returns Invalid Date
, why?