# Date Problem

**URL:** https://talk.remobjects.com/t/date-problem/14905
**Category:** Relativity Server
**Created:** [November 21, 2017, 4:55pm UTC](https://talk.remobjects.com/t/date-problem/14905 "2017-11-21T16:55:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Manfred](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Manfred](https://talk.remobjects.com/u/Manfred)
#### Post date: [November 21, 2017, 4:55pm UTC](https://talk.remobjects.com/t/date-problem/14905/1 "2017-11-21T16:55:14Z")

</div>

Hello

I am looking for a solution withe a Date “Problem”. If in a field is no Date Lazarus shows the Date 30.12.1899.  
I know that this is the Default for no date. In Delphi it was empty.  
Is there a solution to “fix” the no Date Value in Relativity?

Shalom  
Manfred

---

<div class="post-metadata">

### Author: ![bobruss](https://talk.remobjects.com/user_avatar/talk.remobjects.com/bobruss/32/6975_2.png) [@bobruss](https://talk.remobjects.com/u/bobruss)
#### Post date: [November 21, 2017, 6:15pm UTC](https://talk.remobjects.com/t/date-problem/14905/2 "2017-11-21T18:15:39Z")

</div>

Hi, what version of Delphi are you referring to, and what control (Datetime picker?) In my Delphi stuff the a date of zero would show as 30/12/1899

Regards

Bob

---

<div class="post-metadata">

### Author: ![Manfred](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Manfred](https://talk.remobjects.com/u/Manfred)
#### Post date: [November 22, 2017, 8:12am UTC](https://talk.remobjects.com/t/date-problem/14905/3 "2017-11-22T08:12:17Z")

</div>

Hi Bob  
I am using Lazarus 1.64 and using a TDBDatePicker.

---

<div class="post-metadata">

### Author: ![bobruss](https://talk.remobjects.com/user_avatar/talk.remobjects.com/bobruss/32/6975_2.png) [@bobruss](https://talk.remobjects.com/u/bobruss)
#### Post date: [November 22, 2017, 4:03pm UTC](https://talk.remobjects.com/t/date-problem/14905/4 "2017-11-22T16:03:49Z")

</div>

OK. In the Delphi applications I developed, there was always the problem that the TDateTimePicker control displayed 30/12/1899 if the underlying datetime value was zero. Fiddling with the DateTime.Text value could partially resolve the problem, but gave issues of its own.

There were other issues as well, to the extent that I abandoned the datetimepicker as a way of showing/editing a date/time. I ended up using an edit field (to display the “datetime”) linked with a calendar/time control for the user to edit the data. Messy, but the only way I could get a result that looked good from a UI point of view, and was functionally robust.

I’m a newbie to Oxygene Elements, and just starting to look at the components, so I’ll see if the same issue arises!

Anyone else like to comment?

Regards

Bob
