Changing the Default Date Format For Save to Laserfiche and Save to Repository Service Tasks

October 6, 2014 | KB: 1013444
Laserfiche Forms 9.1.1

Summary

Note: If you are running Forms 9.2, please see this help topic for date and time formatting information.

In Forms 9.0, the business process start date used when creating form submissions in the Laserfiche repository, followed the MM/dd/yyyy format. By default, Forms 9.1+ uses the language setting of the Internet browser used to start a process to determine its default date format. By default, Forms 9.1.1 will use an appropriate date format based on your Internet browser's language setting. If you would like to continue using the previous date format or specify a different date format for all form submissions, you can edit the RoutingEngineServiceHost.exe.config file in the Laserfiche Forms install directory.

Note: If the browser language is not supported by Forms, the Forms Server will use the date format for English by default.

Solution

To change the default date format for Save to Laserfiche and Save to Repository service tasks

  1. In Windows Explorer on the Forms Server machine, browse to C:\Program Files\Laserfiche\Laserfiche Forms\Forms\bin and open the RoutingEngineServiceHost.exe.config file with a text editor.
  2. Under the <appSettings> node, add the following lines:

    <add key="IgnoreBrowserLanguage" value="true" />
    <add key="DefaultDateTimeFormat" value="MM/dd/yyyy hh:mm a" />
    <add key="DefaultDateFormat" value="MM/dd/yyyy" />

  3. If the value for the IgnoreBrowserLanguage key is set to true, Forms will use the values specified in the DefaultDateTimeFormat key and the DefaultDateFormat key. To use different date and date-time formats, edit these values.
  4. Save your changes to the RoutingEngineServiceHost.exe.config file.
  5. Restart the Laserfiche Forms Routing Service.