How do I format the date in M-Files?

Note: This content is no longer updated. For the latest content, please go to the user guide for M-Files Online. For information on the supported product versions, refer to our lifecycle policy.

The Date data type of a property is used for displaying a date and time as a property value. If you wish to change the format of how date and time are displayed, you must modify the date and time format settings of the client operating system.

Note: These instructions are for Windows 10, but the procedure is highly similar for other Windows versions.

Complete the steps below on the M-Files client computer to change the date format.

  1. Right-click the Windows Start button and select Settings from the context menu.
    Result:The Settings window is opened.
  2. Click Time & language, and then click Additional date, time, & regional settings.
    Result:The Clock, Language, and Region window is opened.
  3. Under the Region section, click Change date, time, or number formats.
    Result:The Region dialog is opened.
  4. On the Formats tab, click the Additional settings... button.
    Result:The Customize Format dialog is opened.
  5. Open the Time tab, and enter a desired format in the Short time field.
  6. Open the Date tab, and enter a desired format in the Short date field.
  7. Click OK to close the Customize Format dialog.
  8. Click OK to close the Region dialog.
All the properties that use the Date data type should now be displayed in the format that you have specified in the steps above.

How do I format the date on the M-Files server computer?

Date and time information may be employed by various M-Files Server operations, such as script executions or PDF conversions. The date and time format settings of the M-Files server computer's system account determine how dates and times are displayed in such operations.

Complete the steps below on the M-Files server computer to change the date format.

  1. Right-click the Windows Start button and select Settings from the context menu.
    Result:The Settings window is opened.
  2. Click Time & language, and then click Additional date, time, & regional settings.
    Result:The Clock, Language, and Region window is opened.
  3. Under the Region section, click Change date, time, or number formats.
    Result:The Region dialog is opened.
  4. On the Formats tab, click the Additional settings... button.
    Result:The Customize Format dialog is opened.
  5. Open the Time tab, and enter a desired format in the Short time field.
  6. Open the Date tab, and enter a desired format in the Short date field.
  7. Click OK to close the Customize Format dialog.
  8. Open the Administrative tab.
  9. Click the Copy Settings... button.
  10. Enable the option Welcome screen and system accounts.
  11. Click OK to close the dialog.
  12. Click OK to close the Region dialog.
All dates and times generated by the M-Files server computer should now be displayed in the format that you have specified in the steps above.

For instructions on specifying vault-specific locale settings for server-side PDF conversions, see Specifying Vault-Specific Locale Settings for Server-Side PDF Conversions. You may use these instructions to override the server locale settings for PDF conversions if you cannot change the server locale settings.