In Pathway, we offer a powerful feature that allows you to customize date formats using merge tags. By leveraging the policy merge tag, you can specify your preferred date format by including additional parameters. Let's explore how this works:
To utilize the policy merge tag and define a date format, use the following structure: {|policy:segment,Y-m-d|renewal|}. The "renewal" part can be replaced with "effective" depending on which date you wish to display.
Currently, Pathway supports the following date formats within the policy merge tag:
- Y-m-d: This format displays the year, month, and day in the order of year-month-day. For example, 2019-12-30 represents December 30, 2019.
{|policy:segment,Y-m-d|renewal|} - d-m-Y: In this format, the day, month, and year are displayed in the order of day-month-year. For instance, 30-12-2019 represents December 30, 2019.
{|policy:segment,d-m-Y|renewal|} - j F Y: This format shows the day of the month without leading zeros, followed by the full month name, and then the year. For example, 30 December 2019.
{|policy:segment,j F Y|renewal|} - F j Y: In this format, the full month name is displayed first, followed by the day of the month with a comma, and then the year. For instance, on December 30, 2019.
{|policy:segment,F-j-Y|renewal|} - j.n.Y: This format represents the day of the month without leading zeros, followed by a period, the month without leading zeros, another period, and finally, the year. For example, 30.12.2019.
{|policy:segment,j-n-Y|renewal|} - n.j.Y: In this format, the month is displayed without leading zeros, followed by a space, the day of the month without leading zeros, another space, and then the year. For instance, 3 30 2019.
{|policy:segment,n-j-Y|renewal|} - d m Y: This format includes the day of the month with a leading zero, followed by a space, the month with a leading zero, another space, and then the year. For example, 12 30 2019.
{|policy:segment,d-m-Y|renewal|} - j n Y: This format represents the day of the month without leading zeros, followed by a space, the month without leading zeros, another space, and then the year. For instance, 30 3 2019.
{|policy:segment,j-n-Y|renewal|} - French: This format provides the date in the French language. The day of the month is followed by the French month name and the year. For example, 30 décembre 2019.
{|policy:segment,french|renewal|}
If you have any further questions or need assistance, our support team is always ready to help. Feel free to reach out to our CSM team on Slack.