# What am I missing

**URL:** <https://forum.servoy.com/t/what-am-i-missing/2908>\
**Category:** Classic Servoy\
**Created:** [October 16, 2004, 1:57am UTC](https://forum.servoy.com/t/what-am-i-missing/2908 "2004-10-16T01:57:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thertzler](https://avatars.discourse-cdn.com/v4/letter/t/a3d4f5/32.png) [@thertzler](https://forum.servoy.com/u/thertzler)\
**Post date:** [October 16, 2004, 1:57am UTC](https://forum.servoy.com/t/what-am-i-missing/2908/1 "2004-10-16T01:57:28Z")

</div>

Why is it that I can read the month of a global date object xyz:

```auto
m = globals.xyz.getMonth(); 

```

but cannot write it back with:

```auto
globals.xyz.setMonth(11);

```

Instead I have to go via a local date object:

```auto
var d = globals.xyz.getMonth();
d.setMonth(11);
globals.xyz = d;

```

It’s late so be gentle…

---

<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:** [October 18, 2004, 3:36pm UTC](https://forum.servoy.com/t/what-am-i-missing/2908/2 "2004-10-18T15:36:59Z")

</div>

there is currently no other way to handle dates.  
Because globals.XXXX (or the form dataproviders) are the bridges from/to javascript and the servoy system  
And we need to see changes so with strings and numbers this does happen because there is no other way then globals.xxxx = yyy;

But strings are mutable objects so we don’t know if you do setMonth() on a global. So we don’t see any changes, so ui is not updated, relations aren’t update ect.

So we need to force a globals.xxxx = yyy for everything.
