day-js
Reactive icon

Day JS

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded
 on 24 November 2025
 by 
0.0
 (0 ratings)
day-js

Day JS

Details
This asset provides a complete, lightweight, and highly flexible client-side date and time manipulation library for OutSystems Reactive Web and Mobile applications, using the popular JavaScript library Day.js. The goal of this Forge component is to give OutSystems developers a modern, reliable, and high-performance alternative to traditional date-handling functions, while keeping the component extremely simple to use, easy to integrate, and safe for production-ready applications. While OutSystems already includes native date functions, most real-world applications quickly require more advanced formatting, relative time calculations (“2 minutes ago”), timezone parsing, human-readable strings, dynamic date manipulation, or handling data from external APIs in different formats. These tasks can be complex and error-prone when implemented manually. Day.js offers a fast, small, and elegant solution to all of these, and this Forge asset brings that entire power to OutSystems through a clean set of Client Actions, JavaScript wrappers, and plug-in support.
Read more

? Core Purpose

This asset helps you perform advanced date/time operations on the client-side, inside Reactive logic, without needing server round-trips or complex JavaScript coding. Developers can use simple OutSystems actions, such as:

  • FormatDate

  • AddDays

  • AddMonths

  • IsBefore

  • IsAfter

  • FromNow (“5 minutes ago”)

  • ToNow

  • ParseUnix

  • ToUnix

All actions use the Day.js engine behind the scenes, ensuring fast performance and predictable output.


? Why Day.js?

Day.js is a modern JavaScript library designed to be a lightweight alternative to Moment.js. Its core characteristics make it ideal for OutSystems applications:

  • Very small size (~2 KB) ? faster screen load times

  • Immutable objects ? safer logic

  • Chainable API ? clear and expressive date operations

  • Plugin ecosystem ? includes relative time, duration, timezone, localized formatting, and more

  • Huge community support ? stable, widely used, trusted

This Forge asset integrates Day.js into OutSystems in a structured, maintainable, and reusable way.

Release notes (1.0.1)

This version introduces updated naming and several new Day.js wrapper functions to improve consistency and extend capabilities.

What's New

  • Renamed: TimeFromNowFromNow to match official Day.js naming.

  • New Functions Added:

    • AddDay

    • SubtractDays

    • IsBefore

    • IsAfter

    • ToNow

    • ParseUnix

    • ToUnix

    • Now

Improvements

  • All Client Actions now return correct types (DateTime or Text) using .toDate() or .format().

  • All wrappers are now Function = Yes, allowing direct use in expressions.

  • Improved internal JS handling and cleanup.

  • Better plugin support for RelativeTime.

Notes

  • Replace old TimeFromNow calls with FromNow.

  • Ensure relativeTime plugin is loaded when using FromNow/ToNow.

License (1.0.1)
Reviews (0)
Team
Other assets in this category