# Cronplus - Last Day of Month

**URL:** <https://discourse.nodered.org/t/cronplus-last-day-of-month/80859>\
**Category:** General\
**Created:** [28 August 2023 12:37 UTC](https://discourse.nodered.org/t/cronplus-last-day-of-month/80859 "2023-08-28T12:37:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [28 August 2023 12:37 UTC](https://discourse.nodered.org/t/cronplus-last-day-of-month/80859/1 "2023-08-28T12:37:00Z")

</div>

Hi Guys,

I am trying to use cronplus to send a "reset" command on the last day of every month at 23h59.30 ,,, I just cant seem to get the syntax right for the day of month considering it could be 28/29/30 or 31...

Any help would be appreciated!

Regds  
Ed

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 August 2023 12:55 UTC](https://discourse.nodered.org/t/cronplus-last-day-of-month/80859/2 "2023-08-28T12:55:08Z")

</div>

Would 30 second later, at 00:00 on the first day of the month do instead?

Otherwise, I googled for  
cron last day of month  
and the first hit was [automation - CRON job to run on the last day of the month - Stack Overflow](https://stackoverflow.com/questions/6139189/cron-job-to-run-on-the-last-day-of-the-month) which might be useful, though it does it allways on 28th Feb even if it is a leap year.  
There may be other hits on that search which help.

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [28 August 2023 13:04 UTC](https://discourse.nodered.org/t/cronplus-last-day-of-month/80859/3 "2023-08-28T13:04:06Z")

</div>

Docs state that the "L" can be used for last  
`30 59 23 L * *`

Never used so can't tell if it works.

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [28 August 2023 13:15 UTC](https://discourse.nodered.org/t/cronplus-last-day-of-month/80859/4 "2023-08-28T13:15:29Z")

</div>

@hotNipi

 ![screenshot-192.168.0.118_1880-2023.08.28-15_12_11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/b/db68a4096375767539163dd98c0fa54caaeb1bcc.png)

![screenshot-192.168.0.118_1880-2023.08.28-15_14_29](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/0/40df423021422d90dadf67ce692851bd77f6d469.png)

Thanks Heaps!!

Regds  
Ed

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 August 2023 13:17 UTC](https://discourse.nodered.org/t/cronplus-last-day-of-month/80859/5 "2023-08-28T13:17:14Z")

</div>

> [@hotNipi](#):
>
> Docs state that the "L" can be used for last

Once again I learn something new. Excellent.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 September 2023 13:17 UTC](https://discourse.nodered.org/t/cronplus-last-day-of-month/80859/6 "2023-09-11T13:17:49Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
