npm.io
1.2.3 • Published 2 years ago

tax-date-time

Licence
ISC
Version
1.2.3
Deps
8
Size
2 kB
Vulns
0
Weekly
0

Date Time Utils

This module provides utilities for working with dates and times.

Installation

You can install this module via npm: npm install date-time-utils

Usage

Convert to Timezone
const { convertToTimeZone } = require('date-time-utils');

const dateStr = '2024-03-20 12:00:00';
const fromTimeZone = 'America/New_York';
const toTimeZone = 'Europe/London';

const convertedDateStr = convertToTimeZone(dateStr, fromTimeZone, toTimeZone);
console.log('Converted Date:', convertedDateStr);