SOLVED
Format Date
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
RR8
7 - Meteor
‎08-11-2021
07:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi
I am trying to write a formula that will show the dates as follows (ie always 7 digits)
2021001
2021002
2021003
2021010
2021011
Depending on current month -1
ie now would be 2021008 so I would need to consider when I get to January it would need to be 2021012
Please can someone help.
thanks so much
Solved! Go to Solution.
4 REPLIES 4
‎08-11-2021
07:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I meant now would be 2021007! apologies
22 - Nova
‎08-11-2021
07:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @RR8
Use formula like below
DateTimeFormat(DateTimeAdd(DateTimeToday(),-1,"month"),"%Y0%m")
Workflow:
Hope this helps : )
‎08-11-2021
07:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
thanks so much very quick to respond
22 - Nova
‎08-11-2021
07:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Happy to help : ) @RR8
Cheers and have a nice day!
