SOLVED
Last day of the previous month
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
sebenciven
8 - Asteroid
‎02-14-2025
03:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I have these date and I would to obtain the last day of the previous month.
For example: If I have 2024-09-30 -> I would obtain 2024-08-31
I can't use the DateTimeFirstOfMonth(), -1, 'month' because the original date can change in every time.
Thanks to all!
Solved! Go to Solution.
Labels:
- Labels:
- Date Time
3 REPLIES 3
binuacs
21 - Polaris
‎02-14-2025
03:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
DavidSkaife
14 - Magnetar
‎02-14-2025
03:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
OTrieger
13 - Pulsar
‎02-14-2025
04:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@sebenciven
DateTimeTrim is the function that you are looking for.
DateTimeTrim([Date],"firstofmonth") first day of the month
DateTimeTrim([Date],"lastofmonth") last day of the month
