const moment = require("moment") module.exports = class { onCreate(input) { this.state = { expand: false, dateStr: moment(input.log.date).format("MMM D, YYYY"), } } }