Savvion BPM Portal Date Customization
Often one of the things you would need to do with your new Savvion Installations is setting the default date format for your BPM Portal. This article is aimed at helping you out in setting it up.
Savvion uses the SimpleDateFormat class of Java whose Date format can be easily set. You will need to set it up in one of the configuration files on your Portal. Depending on your Application Server look for the place where you have your sbm.war file. Typically for Pramati this will be in
Webapps deploy folder. For my SBM7.6 SP1 Installation this file is located in
Inside the WEB-INF/classes/properties folder look for a file called bpmportal.properties. In case you are using internationalization features this could be one of your custom files like bpmportal_ja.properties.
Once the file is open in a text editor, looks for a string called DateFormat. You can set the format of the same easily. The default format is
DateFormat=MMM dd, yyyy hh:mm a
which will give you a date like Dec 23, 2011 10.12 AM
You can change the same to your own required format. Some sample tokens (Case sensitive) you can put in are
“y” For year
“M” for Month, where MMM will give like Jan, Mar etc
“d” for day in month
“h” for hour in am/pm. This will give you 1-12
“H” for hour in day. This will give you 0-23
“m” minute in hour
“s” second in minute
“S” if you want the milliseconds as well
“a” for AM/PM
“E” for day in week
“z” for timezone
For Example a US Format for date could be “MM/dd/yyyy” which will give you a date like “12/23/2011”
After saving the file, you might need to restart your server for changes to get reflected.
Hope this is helpful.