# show date in text field bug

**URL:** <https://forum.servoy.com/t/show-date-in-text-field-bug/6270>\
**Category:** Classic Servoy\
**Created:** [July 25, 2006, 5:09pm UTC](https://forum.servoy.com/t/show-date-in-text-field-bug/6270 "2006-07-25T17:09:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![elyod\_72](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@elyod\_72](https://forum.servoy.com/u/elyod_72)\
**Post date:** [July 25, 2006, 5:09pm UTC](https://forum.servoy.com/t/show-date-in-text-field-bug/6270/1 "2006-07-25T17:09:52Z")

</div>

To start off with, I am running Servoy Developer version 3.0b3-build 364 with Java version 1.5.0\_06-b05 on Windows XP.  
My servoy client is running Servoy Client version 3.0b3-build 364 with Java version 1.5.0\_06-b05 Running on Windows 2000.

I have a int(11) column named created\_time that holds the UNIX timestamp of the creation date/time.  
I have a varchar(255) column named cr\_date that I have being populated with the cut up date from created\_time. Below is the code:

```auto
var a = new Date(created_time*1000);

var b = a.getDate();

var c = a.getMonth()+1;

var d = a.getYear()+1900;

forms.cr_coord_entry.cr_date = c + '/' + b + '/' + d;

```

It works fine in developer, I see it with no problems.

On the Servoy client side, I see a blank field. According to MyPHP Admin, the column is populated with the correct text, but it won’t show up on client.

If I can see it on one license and not on another, I assume this is a bug.

---

<div class="post-metadata">

**Author:** ![elyod\_72](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@elyod\_72](https://forum.servoy.com/u/elyod_72)\
**Post date:** [July 26, 2006, 11:33pm UTC](https://forum.servoy.com/t/show-date-in-text-field-bug/6270/2 "2006-07-26T23:33:18Z")

</div>

Has this occured with anyone else?

---

<div class="post-metadata">

**Author:** ![elyod\_72](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@elyod\_72](https://forum.servoy.com/u/elyod_72)\
**Post date:** [July 28, 2006, 12:03am UTC](https://forum.servoy.com/t/show-date-in-text-field-bug/6270/3 "2006-07-28T00:03:26Z")

</div>

Here are screen grabs from both the Developer as well as the client.

As you can see there is clearly data missing in the date field on the client license that appears on the developer liscense.

Any responses would be very welcome.

---

<div class="post-metadata">

**Author:** ![sbutler](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/sbutler/32/4393_2.png) [@sbutler](https://forum.servoy.com/u/sbutler)\
**Post date:** [July 28, 2006, 1:52am UTC](https://forum.servoy.com/t/show-date-in-text-field-bug/6270/4 "2006-07-28T01:52:45Z")

</div>

Is the client connecting to the your main Servoy Application Server, or are you pulling up the client from your own Developer (ie [http://localhost:8080](http://localhost:8080)).

Every now and then I find some weird things were the App server just needs restarted. The way to test is to pull up a client conecting to your local copy of developer, and see if it works there.

---

<div class="post-metadata">

**Author:** ![elyod\_72](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@elyod\_72](https://forum.servoy.com/u/elyod_72)\
**Post date:** [July 28, 2006, 6:02pm UTC](https://forum.servoy.com/t/show-date-in-text-field-bug/6270/5 "2006-07-28T18:02:27Z")

</div>

That did it. I had been flushing the solution, and I was seeing changes to the layout each time, so I thought it was working. Ok. Thanks for your help.
