Moment JS
Example of parsing and formatting a Date with Moment JS.
by Yeah
HTML
<script src="http://momentjs.com/downloads/moment.js"></script>
JavaScript
// Moment JS - Formatting Guide: http://momentjs.com/docs/#/parsing/string-format/
console.log(moment('2019-08-20 15:30:00').isAfter(null)); // 08/20/2014 3:30 pm
console.log(moment(null).toDate())