This extension is an example for formatting date / times and displaying them nicely with moment.js and Magento 2.
Please read blogpost here: http://www.herveguetin.com/formatting-date-times-and-displaying-them-nicely-with-moment-js
Install
# From your Magento 2 install dir
composer require herve/date-time-example
php bin/magento module:enable Herve_DateTimeExample
php bin/magento setup:upgrade
Usage
Once the extension is installed on your Magento 2 instance, just go to http://your.domain/herve_datetimeexample