- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2025 11:58 AM - edited ‎03-03-2025 11:59 AM
We are creating a flow (in Flow Designer) that will run on the first day of each month and will have multiple tasks attached for performing Preventative Maintenance on various pieces of equipment. We need to set the Due Date field to the last day of the month (this will be run on the 1st of each month). My scripting attempts have not worked. This should be pretty easy, but scripting is not my forte.
Can anyone enlighten me?
#FlowDesigner
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2025 02:25 PM - edited ‎03-03-2025 02:29 PM
Hi @Dave Wolfe ,
I created an asset task with Due Date = End of Month date and tested this in a FLOW that is configured to execute on the first of each month. You may Try & See 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2025 12:40 PM
You should be able to use a transform function on a date/time pill to do this (last option in the docs page link below)
For the date pill, you can either set a flow variable to the current date/time or based off of the trigger date time.
If you need to go down the flow variable route the following should return the current date time
return new GlideDateTime()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2025 02:25 PM - edited ‎03-03-2025 02:29 PM
Hi @Dave Wolfe ,
I created an asset task with Due Date = End of Month date and tested this in a FLOW that is configured to execute on the first of each month. You may Try & See 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2025 07:56 AM
That worked perfectly. Thank you!