conveyal/modeify

View on GitHub
client/service-alerts-page/row.js

Summary

Maintainability
A
1 hr
Test Coverage
var moment = require('moment')

var View = require('../view')(require('./row.html'))

var dateFormat = 'ddd, MMM D, YYYY'

View.prototype.formatFromDate = function () {
  return moment.utc(this.model.get('fromDate')).format(dateFormat)
}

View.prototype.formatToDate = function () {
  return moment.utc(this.model.get('toDate')).format(dateFormat)
}

module.exports = View