- Overview
- XDate is a modern JavaScript Date wrapper with enhanced functionality
- Released July 30th, 2024, size 7.2k (3.0k gzipped)
- Dual-licensed under MIT or GPL
- Core Features
- Implements same methods as native Date object
- Non-destructive to DOM for third-party libraries
- Supports ISO8601 and IETF date-string formats
- Includes add, subtract, and diff methods
- UTC Mode
- Can be created with utcMode parameter
- Removes timezone dependency from date operations
- Provides identical get methods to native Date
- Implementation Details
- Methods return references for chaining operations
- Supports formatting with various tokens
- Includes utilities for common operations
- Has inconsistencies with native Date's set method behavior