This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as moment from "moment-timezone"; | |
/** | |
* @description | |
* @param {Date | string | moment} date Date to transform. | |
* @param {string} originTZ Timezone in which the date to transform is currently. I.E. "UTC". Defaults to client PC TZ. | |
* @param {string} destinationTZ Timezone to which to convert the date. I.E. "America/Los Angeles". Defaults to "UTC". | |
* @return {string} Date converted to destination timezone in string. | |
* | |
*/ |
OlderNewer