# getMonth(now()) gives false value

**URL:** <https://forum.inductiveautomation.com/t/getmonth-now-gives-false-value/44229>\
**Category:** Ignition\
**Created:** [March 8, 2021, 5:03pm UTC](https://forum.inductiveautomation.com/t/getmonth-now-gives-false-value/44229 "2021-03-08T17:03:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kghali](https://avatars.discourse-cdn.com/v4/letter/k/da6949/32.png) [@kghali](https://forum.inductiveautomation.com/u/kghali)\
**Post date:** [March 8, 2021, 5:03pm UTC](https://forum.inductiveautomation.com/t/getmonth-now-gives-false-value/44229/1 "2021-03-08T17:03:44Z")

</div>

Hello,  
I am trying to show the date in the report and I am using this code in the parameters:  
concat(toInteger(getDayOfMonth(now())),".",toInteger(getMonth(now())))

The month that is displayed is not the current month (Currently the date is 8.3 (March 8th,) , but it is showing 8.2 instead

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 8, 2021, 5:06pm UTC](https://forum.inductiveautomation.com/t/getmonth-now-gives-false-value/44229/2 "2021-03-08T17:06:04Z")

</div>

[https://docs.inductiveautomation.com/pages/viewpage.action?pageId=58603828](https://docs.inductiveautomation.com/pages/viewpage.action?pageId=58603828)

> getMonth Extracts the month from a date, where January is month 0.

---

<div class="post-metadata">

**Author:** ![bpreston](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bpreston](https://forum.inductiveautomation.com/u/bpreston)\
**Post date:** [March 8, 2021, 5:55pm UTC](https://forum.inductiveautomation.com/t/getmonth-now-gives-false-value/44229/3 "2021-03-08T17:55:27Z")

</div>

If your just trying to show 8.3 for today using an expression, wouldn’t something like this be easier?

```auto
dateFormat(now(),'d.M')

```

---

<div class="post-metadata">

**Author:** ![kghali](https://avatars.discourse-cdn.com/v4/letter/k/da6949/32.png) [@kghali](https://forum.inductiveautomation.com/u/kghali)\
**Post date:** [March 8, 2021, 6:02pm UTC](https://forum.inductiveautomation.com/t/getmonth-now-gives-false-value/44229/4 "2021-03-08T18:02:34Z")

</div>

> [@bpreston](#):
>
> ```auto
> dateFormat(now(),'d.M')
> 
> ```

I have much going on but this one works too. Thank you!
