Skip to content

Install

Install ts-datetime in your project using your favorite package manager:

Package Managers

sh
npm install @stacksjs/ts-datetime
sh
bun add @stacksjs/ts-datetime
sh
pnpm add @stacksjs/ts-datetime
sh
yarn add @stacksjs/ts-datetime

TypeScript Support

ts-datetime is fully typed and works out of the box with TypeScript projects.

Configuration

You can add a datetime.config.ts file to your project root to set global defaults. See the Config page for details.

Testing

sh
bun test

Released under the MIT License.