by Justin Wee
FREE
194
DESCRIPTION

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

  1. Click "Download" on this plugin screen (It will be a .jar file).
  2. Go to your Joget localhost or server, in Joget Console, navigate to "Admin Bar>Systems Settings>Manage Plugins" and click "Upload Plugins" button.
  3. In "Upload Plugin" screen, select the plugin .jar file you just downloaded, then click "Upload".
  4. You can now use the Date Formatter hash variable in Forms, Userview or Process Tools.
  5. Remember to always uninstall the old plugin before uploading a new version.
  6. The Joget Knowledge Base has more information on managing and developing plugins.

 

Additional Plugin Information

February 23, 2017
FREE
7
v1
Developer Info
Justin Wee
Write a review
Reviews
Aristo Hadisoeganda
how to handle format that contains dot(.). For example dd.MM.yyyy
March 18, 2021
Print