# another date problem...

**URL:** <https://forum.knime.com/t/another-date-problem/7435>\
**Category:** KNIME Analytics Platform\
**Created:** [February 24, 2015, 9:03am UTC](https://forum.knime.com/t/another-date-problem/7435 "2015-02-24T09:03:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darbon](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@darbon](https://forum.knime.com/u/darbon)\
**Post date:** [February 24, 2015, 9:03am UTC](https://forum.knime.com/t/another-date-problem/7435/1 "2015-02-24T09:03:46Z")

</div>

Hi,

i need to convert&nbsp;a string to date with a java snippet.

For example:

02jul2015-\>01jul2015 22:00

10oct2015-\>09oct2015 23:00

If i use a database writer i need to choose "No correction" to get the right value.

Now i need to write the value into a csv.

How can i get the right value?

Doesn't exist a java fuction to know if the data is a solar time

&nbsp;

---

<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 6, 2015, 1:25pm UTC](https://forum.knime.com/t/another-date-problem/7435/2 "2015-07-06T13:25:25Z")

</div>

Hi Darbon,

for writing to a csv file I would previously convert it using the date to string node.

Best, Iris

---

<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:** [June 23, 2023, 8:24pm UTC](https://forum.knime.com/t/another-date-problem/7435/3 "2023-06-23T20:24:47Z")

</div>


