# Report StartDate and EndDate Parameters

**URL:** <https://forum.inductiveautomation.com/t/report-startdate-and-enddate-parameters/55658>\
**Category:** Ignition\
**Created:** [February 2, 2022, 2:37pm UTC](https://forum.inductiveautomation.com/t/report-startdate-and-enddate-parameters/55658 "2022-02-02T14:37:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![batuhan.parlakay](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@batuhan.parlakay](https://forum.inductiveautomation.com/u/batuhan.parlakay)\
**Post date:** [February 2, 2022, 2:37pm UTC](https://forum.inductiveautomation.com/t/report-startdate-and-enddate-parameters/55658/1 "2022-02-02T14:37:40Z")

</div>

hello,

I’m going to ask about the start and end date parameters in the reports module.

I write this for report startdate parameter for the beginning of each month and it works.

dateFormat(dateArithmetic(now(0),0,‘days’) , “yyyy-MM-01 00:00:00”)

But how to specify the end date parameter for the last day of the every month

thank you.

---

<div class="post-metadata">

**Author:** ![mdia](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdia/32/87599_2.png) [@mdia](https://forum.inductiveautomation.com/u/mdia)\
**Post date:** [February 2, 2022, 2:51pm UTC](https://forum.inductiveautomation.com/t/report-startdate-and-enddate-parameters/55658/2 "2022-02-02T14:51:23Z")

</div>

I think this is what you need.

> [@Ignition Report: Getting 1st day and last day of the month](https://forum.inductiveautomation.com/t/ignition-report-getting-1st-day-and-last-day-of-the-month/19745/3):
>
> First day of month: getDate( getYear({date}), getMonth({date}), 1 ) Last day of month: addDays( getDate( getYear({date}), getMonth({date}) + 1, 1 ), -1 )

---

<div class="post-metadata">

**Author:** ![batuhan.parlakay](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@batuhan.parlakay](https://forum.inductiveautomation.com/u/batuhan.parlakay)\
**Post date:** [February 2, 2022, 3:06pm UTC](https://forum.inductiveautomation.com/t/report-startdate-and-enddate-parameters/55658/3 "2022-02-02T15:06:44Z")

</div>

Thank you but trying this method

Last day of month:

addDays( getDate( getYear({date}), getMonth({date}) + 1, 1 ), -1 )

I’m typing the enddate parameters but getting an error.

Also, do I need to add anything?

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [February 2, 2022, 3:55pm UTC](https://forum.inductiveautomation.com/t/report-startdate-and-enddate-parameters/55658/4 "2022-02-02T15:55:22Z")

</div>

Try changing `{date}` to `now(0)`
