# Date issue

**URL:** <https://forum.servoy.com/t/date-issue/14041>\
**Category:** Classic Servoy\
**Created:** [May 25, 2011, 11:24am UTC](https://forum.servoy.com/t/date-issue/14041 "2011-05-25T11:24:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TonyK](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@TonyK](https://forum.servoy.com/u/TonyK)\
**Post date:** [May 25, 2011, 11:24am UTC](https://forum.servoy.com/t/date-issue/14041/1 "2011-05-25T11:24:11Z")

</div>

Is it normal that months are numbered 0-11? Having debugged my application to the point at which I thought I was going mad, I tried the following and the month of the date is February!!

```auto
	var CSVbuf = globals.gvl_Buf.split(',');
	var lvCallDate = new Date();
	lvCallDate.setFullYear(CSVbuf[0].substr(0,4));
	//lvCallDate.setMonth(CSVbuf[0].substr(8,2));
	lvCallDate.setMonth(1);
	lvCallDate.setDate(CSVbuf[0].substr(8,2));
	lvCallDate.setHours(CSVbuf[0].substr(11,2),CSVbuf[0].substr(14,2),CSVbuf[0].substr(17,2));

```

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [May 25, 2011, 11:39am UTC](https://forum.servoy.com/t/date-issue/14041/2 "2011-05-25T11:39:28Z")

</div>

Yes, that is standard JavaScript.

Paul
