UNPKG

@synotech/utils

Version:

a collection of utilities for internal use

13 lines (12 loc) 404 B
/** * This method converts a date object to a specified timezone * @module dateToTimezone * @param {date} date - a date object * @param {string} timezone - a timezone string * @return {date} {Date} a date object in the specified timezone * @example * * dateToTimezone(new Date(), 'America/New_York') * */ export declare const dateToTimezone: (date: any, timezone: string) => Date;