formatDate

Use the formatDate function to change a DateTime value to a Text value in a local or custom format.

Function format

formatDate(DateTime value, Text date format)

formatDate example 1

In the following example formula, the Form.EndDate DateTime variable value is 09 Oct 2018 - 8:31 AM.

formatDate(Form.EndDate, "DD/MM/YYYY, h:mm a")

This formula returns the date Text value of 09/10/2018, 8:31 am.

formatDate example 2

In the following example formula, the Form.EndDate DateTime variable value is 09 Oct 2018 - 8:31 AM.

formatDate(Form.EndDate, "medium")

This formula returns the date Text value of Oct 9, 2018, 8:31 AM.