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

In the Form Designer, date fields have an option to set their format.

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

  • The thank you page
  • PDFs downloaded from the thank you page
  • The submitted form
  • Save as draft email

Formatting based on browser settings

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

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:

  • Save to repository task
  • Example: Variables in the document name like {/dataset/_initiated_time}

  • User task notification emails
  • Email service task

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 the user that the Laserfiche Forms Routing Service is running as 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 Windows Region settings.

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.