Configuring Date and Time 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
- User task notification emails
- Email service task
Example: Variables in the document name like {/dataset/_initiated_time}
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
- 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.)
- Sign in to the Forms Server machine as the user specified in the Laserfiche Forms Routing Service.
- 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.
- Navigate to C:\Program Files\Laserfiche\Laserfiche Forms\Forms\bin\RoutingEngineServiceHost.exe.config.
- Open the file in an XML editor.
- Change the UseSystemDateTimeFormat key to false.
- Configure the DefaultDateTimeFormat and DefaultDateFormat keys as desired.
- Save the XML file.
- Restart the Laserfiche Forms Routing Service.
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")