Output formatting enables you to standardize the format for date and amount fields.
You must specifically enable the output formatting at the field level. The formatted values are saved as the FormattedText for the specified field and can be accessed in script.
For more information, see Validation > Validation Rules for Fields > Validation Scripts.