# two dates

**URL:** <https://forum.servoy.com/t/two-dates/1614>\
**Category:** Classic Servoy\
**Created:** [April 1, 2004, 1:41pm UTC](https://forum.servoy.com/t/two-dates/1614 "2004-04-01T13:41:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [April 1, 2004, 1:41pm UTC](https://forum.servoy.com/t/two-dates/1614/1 "2004-04-01T13:41:45Z")

</div>

I have two of the same date-fields on a form (same dataprovider)

one datefield has the format: dd-MM-yyyy  
and the other has the format: HH:mm

I type in the first field: 01-01-2004  
and type in the next field: 12:15

Now the first field has changed the date to 01-01-1970

I know that if you only use the time-component this is handy, that the datecomponent is set to zero, but can it be changed that if you use both fields twice, in a way as described above, that this works?

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 1, 2004, 9:47pm UTC](https://forum.servoy.com/t/two-dates/1614/2 "2004-04-01T21:47:17Z")

</div>

will see if i can fix this. The problem is that when you type the HH:mm it will make a new date on youre input.. It doesn’t look what the date was before.. so the date component will be default..
