Joget DX Available for Download
Check out Joget DX, the next generation successor to Joget Workflow for faster, simpler digital transformation.
The Date Formatter allows you to transform the existing date format to another date format for datalist display.
|Name||Description||Screens (Click to view)|
|Data Date Format|
Set to follow your Joget System Settings > System Date Format, for example "dd-MM-yyyy hh:mm aa". Use the Java date format. for example "yyyy-MM-dd" for "2011-06-01". Read the Date Format Pattern Syntax documentation for a list of date formats you can use.
Figure 1: Date Formatter Properties
|Display Date Format|
Use Java date format, for example "dd/MM/yyyy for 01/06/2001".
In this example, we will format the column "Date Created" (dateCreated in the database table) to another date format in datalist builder.
The Data Date Format that we should set should be based on the datalist preview from the datalist builder.
In this example, without the use of Date Formatter, the Data Date Format would be "dd-MM-yyyy hh:mm aa".
With the use of the Date Formatter, we will change the Display Date Format to "hh:mm aa dd/MM/yyyy".
Do note that this setting does NOT change the actual formatting of the date, but merely on how the date is displayed.
After then, you can see the result of this configuration in datalist preview and runtime.