Configuring Date and Time Settings

In Forms, date and time locale formatting are somewhat independent from browser language settings.

Important: These settings only control the date and time formatting. The date and time values saved in the Forms database remain unchanged.

Where Date and Time Formatting is Set

The formatting date and time values use depends on where the values appear in Forms.

Formatting based on date field's format

ClosedShow me where you configure this

In the form designer, date fields have an option to set their format here:

Date format option

This formatting is used for date and time date-type variables in the following places:

Formatting based on browser settings

Example: If Joe is using Chrome and has Closedset his browser to use English(UK), dates will follow this format: dd/mm/yyyy. If Sally is using Firefox and Closedset her browser to English(US), dates will follow this format: m/d/yyyy

Chrome language settings

Firefox language settings

Formatting based on settings in the RoutingEngineServiceHost.exe.config file

The formatting specified in this file is used for dates and times in the following places:

How to Configure Date and Time Formatting in the RoutingEngineServiceHost.exe.config File

By default, the UseSystemDateTimeFormat key in the RoutingEngineServiceHost.exe.config file is set to true. This setting formats dates and times based on the format specified for the user who is logged into the Laserfiche Forms Routing Service on the Forms Server.

To configure the date and time format for the user logged onto the Laserfiche Forms Routing Service

  1. On the Forms Server machine, determine who is logged on to the Laserfiche Forms Routing Service by following the instructions to change the account settings here. (Only change the user if desired.)
  2. Sign in to the Forms Server machine as the user specified in the Laserfiche Forms Routing Service.
  3. Navigate to the Region and Language settings from the Control Panel. ClosedShow me where this configured.
  4. Region and Language settings in Windows

To manually configure the default date and time format

Set the UseSystemDateTimeFormat key to false and configured the DefaultDateTimeFormat and DefaultDateFormat keys.

  1. Navigate to C:\Program Files\Laserfiche\Laserfiche Forms\Forms\bin\RoutingEngineServiceHost.exe.config.
  2. Open the file in an XML editor.
  3. Change the UseSystemDateTimeFormat key to false.
  4. Configure the DefaultDateTimeFormat and DefaultDateFormat keys as desired.
  5. Date and time settings in the XML

    Tip: If you want to use a specific delimiter to format your date and time (instead of the system's default delimiter), put single quotes around the desired delimiter character. (E.g., "yyyy'/'MM'/'dd")

  6. Save the XML file.
  7. Restart the Laserfiche Forms Routing Service.

Date and Time Formatting in Previous Versions of Laserfiche Forms

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. Learn more.