Format date

Merges a formatted date and/or time.

SYNTAX
{{formatDate date format culture}}
PARAMETERS
Name Type Required Description
Data Datetime Required Data to be formatted.
Format Text Required Time zone used to determine the current date.
Culture Text Optional Text that denotes the culture to be used.

For standard date and time formats, refer to the .NET Standard Date and Time Format String.

For custom date and time formats, refer to the .NET Custom Date and Time Format String.

EXAMPLES

The examples below are based on the following sample content:

Renewal date: {{formatData Subscriber.RenewDate format}}

A. Subscriber’s RenewDate field has the value 10/17/2019 11:39AM  and a format of MM/dd/yyyy

Renewal date: 10/17/2019

B. Subscriber’s RenewDate field has the value 10/17/2019 11:39AM  and a format of dd MMM yyyy and a culture of pt_BR

Renewal date: 17 out 2019

C. Subscriber’s RenewDate field has the value 10/17/2019 11:39AM  and a format of yyyy

Renewal year: 2019
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us