This Forge component provides a complete Day.js integration for OutSystems Reactive Web and Mobile applications. It delivers a lightweight, fast, and flexible way to handle dates and times directly on the client side, avoiding unnecessary server round-trips and improving performance in highly interactive interfaces. Day.js is a well-known JavaScript library that offers a modern approach to date manipulation with an extremely small footprint, making it ideal for enterprise-scale OutSystems apps.
The component includes all required JavaScript resources and exposes a set of reusable Client Actions that wrap Day.js functions in an OutSystems-friendly API. These actions allow developers to easily perform common operations such as formatting dates, adding or subtracting time, comparing two dates, converting to/from Unix timestamps, and parsing external API date formats. Support for Day.js plugins—such as RelativeTime—is also included, enabling human-readable expressions like “2 minutes ago” or “in 3 days”.
Designed for maximum reusability, the component follows OutSystems best practices and is packaged inside a Library Application to ensure clean dependency management across different apps in your factory. Developers can simply add the dependency and start using the actions immediately—no JavaScript knowledge required.
This asset is ideal for applications that require flexible date formatting, user-friendly time expressions, complex UI interactions, or integrations with systems that rely on timestamps or ISO date strings. Lightweight, extensible, and reliable, this Day.js library enhances productivity and brings modern date-handling capabilities to your OutSystems projects.