# Date problems ?

**URL:** <https://forum.servoy.com/t/date-problems/4362>\
**Category:** Classic Servoy\
**Created:** [June 15, 2005, 3:18pm UTC](https://forum.servoy.com/t/date-problems/4362 "2005-06-15T15:18:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![janber](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@janber](https://forum.servoy.com/u/janber)\
**Post date:** [June 15, 2005, 3:18pm UTC](https://forum.servoy.com/t/date-problems/4362/1 "2005-06-15T15:18:41Z")

</div>

OK here is the story on :

Platform: Mac OSX104

MySQL: v3.23.53 on OS X Server 10.2.8

Servoy R2.2 build 328

The solution that worked before upgrading to R2.2 and a MySQL database restore, used to display dates in format dd-MM-yyyy (DATETIME)  
The date format in the MySQL database is yyyy-MM-dd (DATE)  
We never had a problem so far  
But now the forms open correctly but DO NOT SHOW the date anymore  
All other fields are showing  
I tried everything so far , no result. Even a new test form displaying all the providers in the repository concerned. No luck.  
What am i missing ?

Client is able to enter dates in the fields, checking the MySql database show all data is available.

---

<div class="post-metadata">

**Author:** ![swingman](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/swingman/32/4536_2.png) [@swingman](https://forum.servoy.com/u/swingman)\
**Post date:** [June 15, 2005, 7:54pm UTC](https://forum.servoy.com/t/date-problems/4362/2 "2005-06-15T19:54:22Z")

</div>

I had a very similar problem with Postgresql 8 and Servoy 2.2. Not sure whether it is 2.2 specific or also would have caused a problem on earlier versions, I didn’t try it. I s

Solved it by changing the default date format in Postgresql to the European format dd-MM-yyyy and restarting the database server.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 15, 2005, 8:06pm UTC](https://forum.servoy.com/t/date-problems/4362/3 "2005-06-15T20:06:42Z")

</div>

I am sure you mean PostgreSQL version **8**. ![:D]( "Very Happy")

---

<div class="post-metadata">

**Author:** ![janber](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@janber](https://forum.servoy.com/u/janber)\
**Post date:** [June 16, 2005, 2:21pm UTC](https://forum.servoy.com/t/date-problems/4362/4 "2005-06-16T14:21:46Z")

</div>

This one is solved :

Seems RC 2.2 is indeed more strict than the earlier versions

Changing the field type from DATE to DATETIME in MySQL solved the problem.

Type in database and in Servoy should match exactly

---

<div class="post-metadata">

**Author:** ![amisle](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@amisle](https://forum.servoy.com/u/amisle)\
**Post date:** [September 11, 2005, 10:53pm UTC](https://forum.servoy.com/t/date-problems/4362/5 "2005-09-11T22:53:25Z")

</div>

I am experiencing this exact problem - dates do not appear in the fields when data is retrieved, but are saved if a new date is entered. My software versions are the same as above (namely, MySQL 3.23), except I am using the 2.2 release. I tried changing the format under Servoy’s Locale tab to “yyyy-MM-dd” to match MySQL, and the fields were already set to a DATETIME type in Servoy… still no luck, I’m afraid. Even when retrieving the fields in question as strings, they all have null values.

---

<div class="post-metadata">

**Author:** ![amisle](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@amisle](https://forum.servoy.com/u/amisle)\
**Post date:** [September 12, 2005, 4:42pm UTC](https://forum.servoy.com/t/date-problems/4362/6 "2005-09-12T16:42:06Z")

</div>

I can be dense sometimes, and yesterday was one of them. I wasn’t reading closely enough, it would seem. I changed the column types to DATETIME in **MySQL** and now Servoy works fine.

So, I guess my question now would be: is there any way to do just a pure DATE (without the time information) in Servoy, or does it always have to be a DATETIME? It would appear there is no option for this in Dataproviders, but I’d really like to avoid the extra 5 bytes per date field per record if possible.

Thanks for bearing with me ![:)]( "Smile")
