mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
9 lines
163 B
JavaScript
9 lines
163 B
JavaScript
'use strict'
|
|
|
|
const moment = require('moment-timezone')
|
|
|
|
const formatDate = (tz, when) => {
|
|
moment(when).tz(tz).format('YYYYMMDD')
|
|
}
|
|
|
|
module.exports = formatDate
|