updated
created a date object using JS, then using moment.js