# Error parse date in defaultValue

**URL:** <https://forum.knime.com/t/error-parse-date-in-defaultvalue/34622>\
**Category:** KNIME Analytics Platform\
**Created:** [July 14, 2021, 10:52am UTC](https://forum.knime.com/t/error-parse-date-in-defaultvalue/34622 "2021-07-14T10:52:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![deas](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@deas](https://forum.knime.com/u/deas)\
**Post date:** [July 14, 2021, 10:52am UTC](https://forum.knime.com/t/error-parse-date-in-defaultvalue/34622/1 "2021-07-14T10:52:54Z")

</div>

![image](https://forum-cdn.knime.com/uploads/default/original/3X/1/9/1935afa0f1327a47c2cbb53fbac8e8656f148ac5.png)

I want to set the default date as the current date - 2 days and so that it can be changed in the settings. But an error occurs. An error with the date type or with the date and time type.

---

<div class="post-metadata">

**Author:** ![bruno29a](https://forum-cdn.knime.com/user_avatar/forum.knime.com/bruno29a/32/28802_2.png) [@bruno29a](https://forum.knime.com/u/bruno29a)\
**Post date:** [July 14, 2021, 12:54pm UTC](https://forum.knime.com/t/error-parse-date-in-defaultvalue/34622/2 "2021-07-14T12:54:20Z")

</div>

Hi @deas and welcome to the Community.

Can you please show us the configuration window of the node?

Or can you share your workflow?

---

<div class="post-metadata">

**Author:** ![deas](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@deas](https://forum.knime.com/u/deas)\
**Post date:** [July 14, 2021, 1:03pm UTC](https://forum.knime.com/t/error-parse-date-in-defaultvalue/34622/3 "2021-07-14T13:03:12Z")

</div>

Hi @bruno29a

Workflow - [datetime\_configuration – KNIME Hub](https://kni.me/w/0eiead7xLw8-QWST)

---

<div class="post-metadata">

**Author:** ![Iris](https://forum-cdn.knime.com/user_avatar/forum.knime.com/iris/32/14_2.png) [@Iris](https://forum.knime.com/u/Iris)\
**Post date:** [July 14, 2021, 1:11pm UTC](https://forum.knime.com/t/error-parse-date-in-defaultvalue/34622/4 "2021-07-14T13:11:03Z")

</div>

hi @deas

You need to use Date&Time with Timezone in the first node.

This will generate the flow variable in a format which the configuration node will understand.

---

<div class="post-metadata">

**Author:** ![deas](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@deas](https://forum.knime.com/u/deas)\
**Post date:** [July 14, 2021, 1:20pm UTC](https://forum.knime.com/t/error-parse-date-in-defaultvalue/34622/5 "2021-07-14T13:20:42Z")

</div>

Hi @Iris

It works. Thank you.

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [July 15, 2021, 1:16pm UTC](https://forum.knime.com/t/error-parse-date-in-defaultvalue/34622/6 "2021-07-15T13:16:06Z")

</div>

Hello @deas,

> [@deas](#):
>
> I want to set the default date as the current date - 2 days

Another option can be to use [Create Date&Time Range](https://kni.me/n/zWwbyiLGE3YSbr4_) node with current execution date option and number of rows 1. This will give you current date in single row. Then follow it with [Date&Time Difference](https://kni.me/n/9fwSs7H-HKfJ5L8V) node and [Table Row to Variable](https://kni.me/n/fI6e-FYDCsugy9m_).

Welcome to KNIME Community!

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [July 22, 2021, 1:16pm UTC](https://forum.knime.com/t/error-parse-date-in-defaultvalue/34622/7 "2021-07-22T13:16:48Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
