# Loading to a date picker field - can this be empty?

**URL:** <https://community.hubspot.com/t/loading-to-a-date-picker-field-can-this-be-empty/95730>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [December 9, 2023, 9:19pm UTC](https://community.hubspot.com/t/loading-to-a-date-picker-field-can-this-be-empty/95730 "2023-12-09T21:19:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CMorris74](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@CMorris74](https://community.hubspot.com/u/CMorris74)\
**Post date:** [December 9, 2023, 9:19pm UTC](https://community.hubspot.com/t/loading-to-a-date-picker-field-can-this-be-empty/95730/1 "2023-12-09T21:19:04Z")

</div>

Hi

We’re working on a project where we need to load data which contains a data field, this has been set up in the object as a datepicket.

At the moment i get an error message about the field being nil, is there any way to process NULL values as in our project this field will not always be populated

Thank you in advance for any help

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [December 9, 2023, 10:26pm UTC](https://community.hubspot.com/t/loading-to-a-date-picker-field-can-this-be-empty/95730/2 "2023-12-09T22:26:29Z")

</div>

@CMorris74 if you’re using a date field and importing data, you’d want it to be completely blank rather than being “nil” or “NULL” - how are you passing the information?

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [December 9, 2023, 10:27pm UTC](https://community.hubspot.com/t/loading-to-a-date-picker-field-can-this-be-empty/95730/3 "2023-12-09T22:27:52Z")

</div>

@CMorris74 for example, you could pass it as a blank value by leaving no space between the quotes:

```lia-code-sample
{
 "properties": [
 {
 "property": "my_date_picker",
 "value": ""
 }
 ]
}

```

---

<div class="post-metadata">

**Author:** ![CMorris74](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@CMorris74](https://community.hubspot.com/u/CMorris74)\
**Post date:** [December 15, 2023, 10:10pm UTC](https://community.hubspot.com/t/loading-to-a-date-picker-field-can-this-be-empty/95730/4 "2023-12-15T22:10:51Z")

</div>

thank you, we managed to get this working, it appears like we had a formatting issue on the dates and received a false positive

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [December 17, 2023, 8:35pm UTC](https://community.hubspot.com/t/loading-to-a-date-picker-field-can-this-be-empty/95730/5 "2023-12-17T20:35:00Z")

</div>

Glad you got it working @CMorris74, happy to help!
