---
title: "How can I push a \"date\" type into HubSpot using CRM mapping?"
description: When using CRM mapping to push a date into HubSpot, you can change the default single-line text type to a date type instead.
---

[Skip to content](https://help.paycove.io/knowledge/push-date-type-into-hubspot-using-crm-mapping#main-content)

[Contact us](https://help.paycove.io/knowledge/kb-tickets/new)

[![paycove\_logo\_explore\_nautical\_wide-08.svg\]](https://help.paycove.io/hubfs/Imported%20images/paycove_logo_explore_nautical_wide-08.svg)](https://www.paycove.io/)

- [FAQs](https://help.paycove.io/knowledge/frequently-asked-questions)
- [Help Articles](https://help.paycove.io/knowledge/help-articles)

Open main navigation

Close main navigation

- [FAQs](https://help.paycove.io/knowledge/frequently-asked-questions)
- [Help Articles](https://help.paycove.io/knowledge/help-articles)
- [Contact us](https://help.paycove.io/knowledge/kb-tickets/new)
- [Go to paycove.io](https://www.paycove.io/)

[Go to paycove.io](https://www.paycove.io/)

 Hi there. How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://help.paycove.io/knowledge)
2. [Frequently Asked Questions](https://help.paycove.io/knowledge/frequently-asked-questions)
3. [Integrations](https://help.paycove.io/knowledge/frequently-asked-questions#integrations)

# How can I push a "date" type into HubSpot using CRM mapping?

You may have noticed that, when using CRM mapping to push a date into HubSpot, that the format is not exactly what you hoped for. The date defaults to using "single-line text" field type, instead of a true "date" field type. Read on to learn how to change this in our 2-step tutorial.

![string-vs-date-type](https://help.paycove.io/hs-fs/hubfs/string-vs-date-type.png?width=408&height=117&name=string-vs-date-type.png)

> ***Note:** If you'd like to learn about date formatting with Liquid filters, [check out this article](https://help.paycove.io/knowledge/date-formatting).*

### Step 1: Create a new CRM mapping property

First, go to the **[CRM Settings page](https://paycove.io/pipelines)** and scroll down to the **Set up CRM field mapping** section at the bottom. Click **Configure.** In the modal that opens, click **Add new field,** and then type in a name for your new property (we've gone with "Paycove Due Date"). In our example, we use the built-in "deal.invoice\_due\_date" property, but we've made it more specific by adding date filters (which make specific dates pull in). Copy and paste the following into the "Property data" field:

```
{% if deal.invoice_due_date %}{{deal.invoice_due_date | date: "%Y-%m-%d" | date: "%s000"}}{% endif %}
```

#### ![new-property](https://help.paycove.io/hs-fs/hubfs/new-property.png?width=615&height=647&name=new-property.png)

Click **Save changes** in the modal, and then again on the bottom right of the page. The new variable should be pushed to HubSpot.

#### ![save-changes-1](https://help.paycove.io/hs-fs/hubfs/save-changes-1.png?width=160&height=93&name=save-changes-1.png)

---

#### *Advanced*: Variable Breakdown

Here is how the variable and filters were chosen:

- We began with the `deal.invoice_due_date`  property.
- We then added two date filters for HubSpot to recognize it: `| date: "%Y-%m-%d" | date: "%s000"` 
    - **So far**: `{{deal.invoice_due_date | date: "%Y-%m-%d" | date: "%s000"}}`
- Finally, we wrapped it in an **if statement** to make sure the date exists in the first place: 
    - We added  `{%raw%}{% if deal.invoice_due_date %}`  at the start and ```{% endif %}`  at the end.
    - **Final**:  `{% if deal.invoice_due_date %}{{deal.invoice_due_date | date: "%Y-%m-%d" | date: "%s000"}}{% endif %}`

---

### Step 2: Change the field type in HubSpot from "single-line" to "date"

Next, you will edit the field type in HubSpot from *single-line text* to *date. (*Note that you'll want to make this change right away. If any values get sent from Paycove to HubSpot, you'll no longer be able to edit the field type on them.) You may need to resync in HubSpot to have the new variable show up.

To change the field type, locate the property and click **Edit Property.**

![edit-property](https://help.paycove.io/hs-fs/hubfs/edit-property.png?width=688&height=140&name=edit-property.png)Then in Edit mode, in the **Field type **section, choose **Date picker **from the dropdown menu. Adjust other settings at this time if needed, and be sure to **Save **when you're done.

![date-picker](https://help.paycove.io/hs-fs/hubfs/date-picker.png?width=688&height=230&name=date-picker.png)  
Finally, check the variable on your desired deal, and you should see the due date in a true date type format.

![date-type](https://help.paycove.io/hs-fs/hubfs/date-type.png?width=340&height=178&name=date-type.png)

If you need further assistance with this, feel free to reach out to us at support@paycove.io, and we'd be glad to help!

 

- [Help Articles](https://help.paycove.io/knowledge/help-articles#main-content)

    - [Getting Started and Integrations](https://help.paycove.io/knowledge/help-articles#getting-started-and-integrations)
    - [Customizing Templates](https://help.paycove.io/knowledge/help-articles#customizing-templates)
    - [Managing Quotes and Invoices](https://help.paycove.io/knowledge/help-articles#managing-quotes-and-invoices)
    - [Products and Subscriptions](https://help.paycove.io/knowledge/help-articles#products-and-subscriptions)
    - [Payments, Taxes, and Fees](https://help.paycove.io/knowledge/help-articles#payments-taxes-and-fees)
    - [Account Settings](https://help.paycove.io/knowledge/help-articles#account-settings)
    - [Other Help Articles](https://help.paycove.io/knowledge/help-articles#other-help-articles)
- [Frequently Asked Questions](https://help.paycove.io/knowledge/frequently-asked-questions#main-content)

    - [Managing Quotes and Invoices](https://help.paycove.io/knowledge/frequently-asked-questions#managing-quotes-and-invoices)
    - [Integrations](https://help.paycove.io/knowledge/frequently-asked-questions#integrations)
    - [Payments](https://help.paycove.io/knowledge/frequently-asked-questions#payments)
    - [Account Settings](https://help.paycove.io/knowledge/frequently-asked-questions#account-settings)
    - [Pricing and Plans](https://help.paycove.io/knowledge/frequently-asked-questions#pricing-and-plans)
    - [Other](https://help.paycove.io/knowledge/frequently-asked-questions#other)

[![Paycove Logo](https://help.paycove.io/hubfs/Imported%20images/paycove_logo_explore_nautical_wide-08.svg "Paycove Logo")](https://www.paycove.io/)

                                              

<https://www.facebook.com/paycove/> [mailto:support@paycove.io](mailto:support@paycove.io) <https://www.instagram.com/paycove.io/> <https://twitter.com/paycove>

Copyright © 2026, Paycove