The fastest TypeScript library for working with dates, times and timezones.
import { addDays, startOfDay } from "datezone";
const now = Date.now();
const start = startOfDay(now, "America/New_York");
const tomorrow = addDays(now, 1, "Europe/London");
console.log(tomorrow - start);
Extreme Performance
Blazing fast performance.
Up to 1,000x faster than date-fns for timezone operations.Learn more
Faster by Design
Faster by design, with no unnecessary object creation.
Uses timestamp math instead of creating Date objects, minimizing allocations.Learn more
Time-Zone-First
Time-Zone First API design.
All functions accept an optional time zone parameter for explicit timezone handling.Learn more
Zero Unnecessary Objects
Zero unnecessary objects for maximum efficiency.
Avoids creating Date objects unless absolutely necessary, saving garbage collector work.Learn more
Tree-Shakeable
Tree-shakeable for smaller bundle sizes.
Import only what you need, keeping your bundle size small.Learn more
Pure & Typed
Pure and fully typed for robust applications.
No side effects and strict TypeScript types for reliable code.Learn more