# Expression to set particular day

**URL:** <https://forum.inductiveautomation.com/t/expression-to-set-particular-day/16067>\
**Category:** Ignition\
**Created:** [November 21, 2017, 11:09am UTC](https://forum.inductiveautomation.com/t/expression-to-set-particular-day/16067 "2017-11-21T11:09:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dilan](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@Dilan](https://forum.inductiveautomation.com/u/Dilan)\
**Post date:** [November 21, 2017, 11:09am UTC](https://forum.inductiveautomation.com/t/expression-to-set-particular-day/16067/1 "2017-11-21T11:09:49Z")

</div>

Hello,

I see there is the ability to use the Settime function to set the calendar component to a particular time. I was able to use this successfully to set my report time to to 3am using the following: settime(now(0),3,0,0)  
I would also like to set the day in the month to a particular day… say the 2nd, is there an expression I may be missing that will allow me to do this?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 21, 2017, 4:52pm UTC](https://forum.inductiveautomation.com/t/expression-to-set-particular-day/16067/2 "2017-11-21T16:52:08Z")

</div>

I think [`getDate`](https://docs.inductiveautomation.com/display/DOC79/getDate) should be what you’re looking for - pass a year/month/day and it gives you a Date (with no time) set to that day.

---

<div class="post-metadata">

**Author:** ![Dilan](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@Dilan](https://forum.inductiveautomation.com/u/Dilan)\
**Post date:** [March 6, 2018, 10:36am UTC](https://forum.inductiveautomation.com/t/expression-to-set-particular-day/16067/3 "2018-03-06T10:36:53Z")

</div>

Hello,

Thank you so much for your suggestion, it worked well.
