Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Time Ago Formatter calculates the duration between two input dates from (the same List) with different methods to be chosen from.
Plugins Available in the Bundle:
Time Ago Datalist Formatter
This plugin bundle is compatible with Joget DX 7 and onwards.
The user is able to calculate duration between two dates in the same list.
Figure 1: Time Ago Datalist Formatter in List
1. You can get the plugin jar file from Joget Marketplace.
2. Upload the plugin jar file in Joget by going to Settings → Manage Plugins.
3. You can choose to import the demo app or create the app from scratch.
1. Download the demo app from Download Demo App.
2. Go to Joget Home or All Apps and click on Import App to import the downloaded demo app.
1. Create a form with some manual text field values and some date picker values.
Figure 2: Create Form with Text Fields and Date Picker
2. Go to right up corner, click on Generate App > Generate CRUD
Figure 3: Generate CRUD for form
3. Now go to the datalist. Play around with the plugin by duplicating the column and applying the Time Ago Datalist Formatter. For plugin configuration details, please refer to Time Ago Formatter Properties.
Figure 4: Modify list and apply Time Ago Datalist Formatter
4. Publish and run the UI. You can see the difference of the dates that you configured.
Figure 5: Time Ago Datalist Formatter in UI List
Name | Description |
---|---|
Duration | Different methods of taking in two dates. Available options:
|
Target Date | A different column date taken in as one of the input dates to be compared with the existing Column Date. Only appears when Duration is selected as the From Column Date to Another Date option. |
From Date | A different column date taken in as one of the input dates to be compared with To Date. Only appears when Duration is selected as the Between Two Dates option. |
To Date | A different column date taken in as one of the input dates to be compared with From Date. Only appears when Duration is selected as the Between Two Dates option. |
Date Output Format | Date output formats for specific units. Available options:
|
Include Format in Output | Checkbox field to determine whether to include format when date output format is chosen. |