SOLVED
Changing date day value to 01
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
TormentMaker
8 - Asteroid
‎06-02-2021
06:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey guys, i would need some help with a date problem i'm having, its something like, my date format is like "yyyy-mm-dd" format, and i would need a solution that allows me to get the day of this date value and change it to "01" independent of the day it is, so if its day 26, 25 or even 13, the solution will change it to 01.
Someone knows how to do it?
Solved! Go to Solution.
Labels:
- Labels:
- Date Time
3 REPLIES 3
17 - Castor
‎06-02-2021
06:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Using a formula tool, put datetimetrim([Field],'firstofmonth'). Replace Field with your column name. This assumes the field is already stored as a date.
22 - Nova
‎06-02-2021
06:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can use formula like below
DateTimeFormat([Date],"%Y-%m-01")
Where day is fixed and set to 01
Hope this helps 🙂
‎06-02-2021
06:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks, both worked as a solution to me!
