> For the complete documentation index, see [llms.txt](https://docs.welkinhealth.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.welkinhealth.com/designer/documents-and-assessments/filtering-message-template-variables.md).

# Filtering Message Template Variables

## Overview

Message templates, assessment PDFs, data views, and PFA folder pages in Welkin support dynamic variables that are automatically replaced with patient or encounter data when the template is rendered. Dates and datetimes in these variables are formatted based on the **locale** of the Point of Contact (PoC) care team member.

***

## Date Format by Locale

The date format used in template variables depends on the locale configured on the PoC user's profile:

| Locale               | Date format  | Datetime format        |
| -------------------- | ------------ | ---------------------- |
| **EN\_US** (default) | `MM-dd-yyyy` | `MM-dd-yyyy h:mm a VV` |
| **EN\_EU**           | `dd-MM-yyyy` | `dd-MM-yyyy HH:mm VV`  |

For example, December 11, 2024 at 12:15 AM (Australia/Hobart) would appear as:

* **EN\_US:** `12-11-2024 12:15 AM Australia/Hobart`
* **EN\_EU:** `11-12-2024 00:15 Australia/Hobart`

This applies to the following encounter template variables:

* `{{ENCOUNTER.*.startDate}}`
* `{{ENCOUNTER.*.startDateTime}}`
* `{{ENCOUNTER.*.endDateTime}}`

It also applies to date and datetime fields in **assessment PDFs**, **CDT date/datetime fields** rendered in data views, and **PFA folder** welcome and conclusion pages.

***

## Setting a User's Locale

A user's locale is set in their user profile in the Admin Portal. Contact your Welkin administrator if you need to update the locale for a care team member.

***

## Related Topics

* [Filtering with Message Template Variables](/designer/documents-and-assessments/filtering-with-message-template-variables.md) – variable filters and formatting
* [Communication Templates](https://docs.welkinhealth.com/care/communication/communication-templates) – using templates in Care
* [Create Automated Appointment Reminders](/designer/automations/create-automated-appointment-reminders.md) – using encounter variables in automations


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.welkinhealth.com/designer/documents-and-assessments/filtering-message-template-variables.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
