@tridnguyen/date-tz

1.1.0 • Public • Published

date-tz

Get date object for time at a timezone

Usage

import getDateInTz from "@tridnguyen/date-tz";

getDateInTz("2021-07-01 20:05", "America/Chicago").toISOString(); // 2021-07-02T01:05:00.000Z
getDateInTz(new Date("2021-12-05 20:05"), "America/Chicago").toISOString(); // 2021-12-06T02:05:00.000Z

Readme

Keywords

Package Sidebar

Install

npm i @tridnguyen/date-tz

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

6.02 kB

Total Files

7

Last publish

Collaborators

  • tridnguyen