db-vendo-client/format/date.js

10 lines
189 B
JavaScript
Raw Normal View History

2017-11-12 00:45:51 +01:00
'use strict'
const moment = require('moment-timezone')
const formatDate = (profile, when) => {
return moment(when).tz(profile.timezone).format('YYYYMMDD')
2017-11-12 00:45:51 +01:00
}
2017-11-12 00:53:34 +01:00
module.exports = formatDate