For librărie JavaScript ușoară pentru formatarea datelor, the strongest matches are moment/luxon (Luxon is a modern, dependency-free JavaScript library purpose-built for), date-fns/date-fns (date-fns is a modular, tree-shakeable JavaScript library that provides) and iamkun/dayjs (Day). formkit/tempo and moment/moment round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Utilitare JavaScript open-source compacte pentru parsarea, manipularea și formatarea eficientă a șirurilor de dată și timp.
Luxon is a JavaScript library for parsing, validating, manipulating, and formatting dates and times. It provides a suite of immutable objects for managing points in time, durations, and intervals, ensuring that all transformations return new instances to maintain predictable state. The library distinguishes itself by leveraging the native Internationalization API and environment-based time zone databases. This architecture allows for localized date formatting and global time zone conversions without requiring external data files or additional dependencies. It also supports non-Gregorian calen
Luxon is a modern, dependency-free JavaScript library purpose-built for parsing and formatting dates with full support for custom tokens, multiple formats, and locale-aware output via the native Intl API—meeting your requirements for a small, efficient library.
date-fns is a JavaScript date utility library providing a collection of pure functions for manipulating, formatting, and calculating dates and times. It serves as an immutable date manipulation library and a tool for time zone management, ensuring that date transformations are performed without modifying the original date objects. The library functions as a date formatting tool that converts date objects into human-readable strings using custom patterns and international locales. It includes a specific toolset for adjusting and calculating date representations across different geographical re
date-fns is a modular, tree-shakeable JavaScript library that provides pure functions for parsing dates from strings and formatting them with custom tokens and locale support, and it has no external dependencies, making it a comprehensive fit for efficient date string handling.
Day.js is a lightweight utility for parsing, validating, and manipulating date objects. It provides a fluent, chainable interface that allows for complex time calculations and transformations to be performed through a sequence of readable method calls. By utilizing an immutable wrapper pattern, the library ensures data integrity by creating new instances for every operation rather than modifying existing objects. The project is distinguished by a minimalist core abstraction that maintains a small footprint by offloading non-essential features to an optional, modular plugin system. This archit
Day.js is a lightweight, dependency-free JavaScript date library that provides parsing and formatting with a familiar Moment-like API, supports locale-aware output via optional plugins, and is tree-shakeable as an ES module — exactly the small, efficient tool this search is after.
Tempo is a JavaScript date manipulation library that provides a suite of tools for parsing, formatting, and calculating dates and times. It serves as a date arithmetic engine, a locale-aware formatter, and a timezone offset manager for native JavaScript date objects. The library includes a dedicated ISO 8601 date parser for validating and converting standardized strings into date objects. It handles geographic normalization through IANA timezone offset management and utilizes the native Internationalization API for region-specific date formatting. The project covers a broad range of date and
Tempo is a full-featured JavaScript library for parsing, formatting, and manipulating dates, with locale-aware formatting via the Intl API and support for custom format tokens, matching the core request for date parsing and formatting—though its breadth may mean a larger bundle than the "minimal" emphasis in this search.
Moment is a JavaScript date manipulation library used for parsing, validating, manipulating, and formatting dates and times. It provides a system for converting date strings into structured objects using the ISO 8601 standard or custom tokens. The library includes a timezone management tool for handling UTC offsets and geographic timezones, ensuring accurate date calculations across different regions. It features an internationalized date formatter and a relative time calculator to render timestamps as human-friendly durations adapted to various cultural locales and languages. The project co
Moment.js is a widely used date parsing and formatting library with locale support and custom tokens, fitting the category, but its large bundle size, lack of tree-shakeable ES modules, and bundled dependencies go against the request for a minimal and efficient library.
:clock2: Immutable date and time library for javascript
js-joda is a full-featured immutable date and time library that can parse and format dates with custom tokens and locale support, but its comprehensive approach means it is not minimal or as lightweight as you're looking for.