php-date

JSON →
library 4.0.1 ·javascript
verified Jun 4, 2026

A JavaScript library that mimics PHP's date() function for formatting Date objects. Current stable version is 4.0.1. Ships TypeScript definitions, works in Node.js and all modern browsers including IE11. Key differentiators: small size (1.2KB gzipped), supports almost all PHP date format tokens except timezone identifiers (e, T), and provides a UTC variant date.UTC(). Active development with regular releases.