> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notifly.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Use dates in audience conditions

> Compare dates stored in user properties with the scheduled send date.

## Compare a user property with the send date

Set the target audience by comparing a date stored in a user property, such as a sign-up date or birthday, with the scheduled send date.

For example, you can:

* Send a welcome message at 8:00 AM the day after sign-up.
* Send a birthday message three days before the user's birthday.

### 1-1. Before you start

* Store each date in a consistent format, such as `YYYY-MM-DD` or `YYMMDD`, using Korea Standard Time (GMT+9, Asia/Seoul). Use the same format in the comparison value.
* Test your Liquid expression at `https://notifly.tech/console/products/{productId}/utils/liquid-playground`. Replace `{productId}` with the product ID from your console URL.

### 1-2. Set up the campaign

This example sends a message daily at 8:00 AM Korea Standard Time to users who signed up the previous day.

* Delivery timing
  * Select **Daily Scheduled Delivery**.
  * Choose `Asia/Seoul` under **Set Timezone** and set the delivery time to 8:00 AM.

    ![Delivery timing for the date-based campaign](https://mintcdn.com/notifly/dcFO7QF5JScPffiH/images/i18n/en/campaigns/campaign-segment-personalized-user-condition-dday-send-time.png?fit=max\&auto=format\&n=dcFO7QF5JScPffiH\&q=85\&s=6641aedb1185e793718e013a31a3d54f)
* Target audience
  * Target users whose `join_date` matches the previous day's date in Korea Standard Time. This example uses `YYYY-MM-DD`.
  * Enter this comparison value.

    ```
    {{ "now" | date_add: "-1 day" | date: "%Y-%m-%d", "Asia/Seoul" }}
    ```

    * `"now"` is the current time.
    * `date_add: "-1 day"` subtracts one day.
    * `date: "%Y-%m-%d", "Asia/Seoul"` converts the result to Korea Standard Time and formats it as `YYYY-MM-DD`.

    ![Target condition for the date-based campaign](https://mintcdn.com/notifly/dcFO7QF5JScPffiH/images/i18n/en/campaigns/campaign-segment-personalized-user-condition-dday.png?fit=max\&auto=format\&n=dcFO7QF5JScPffiH\&q=85\&s=84666f614701b4cadf666bedd5ca2aec)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.