The Date Formatter Hash Variable Plugin converts your displayed date values from one date format to another, example from "2017-02-23" to "Feb 23, 2017".
Syntax: #dateFormatter.{date source value}.source date format&new date format#
Let's say you have saved your dates into the database as "yyyy-MM-dd", using this form hash variable #form.dbtable.dateField# in your form or (email) tool, it will display as "2017-02-23".
Using the Date Formatter hash variable, you can change the date format to display as "Feb 23, 2017" using the following hash syntax:
#dateFormatter.{{form.dbtable.dateField}}.yyyy-MM-dd&MMM d, yyyy#
For static date values, use the following hash syntax:
#dateFormatter.{2017-02-23}.yyyy-MM-dd&MMM d, yyyy#
The Date and Time pattern strings are based on the Java SimpleDateFormat.
The Joget Knowledge Base has an extensive documentation on Hash Variable.
Steps To Import This Plugin
- Click "Download" on this plugin screen (It will be a .jar file).
- Go to your Joget localhost or server, in Joget Console, navigate to "Admin Bar>Systems Settings>Manage Plugins" and click "Upload Plugins" button.
- In "Upload Plugin" screen, select the plugin .jar file you just downloaded, then click "Upload".
- You can now use the Date Formatter hash variable in Forms, Userview or Process Tools.
- Remember to always uninstall the old plugin before uploading a new version.
- The Joget Knowledge Base has more information on managing and developing plugins.