Completed type work, using moment.js for date conversion