Moment.js implementation.