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