SOLVED
Date Format
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
Hiteshp
7 - Meteor
‎07-20-2023
10:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
How do i get to join the start date and end date of the week in mm/dd - mm/dd format, with the condition week starting on a Monday.
In the Attach example i would like to get the date in 06/26-07/03 format.
Thank you.
Solved! Go to Solution.
Labels:
- Labels:
- Data Challenge
3 REPLIES 3
DavidSkaife
14 - Magnetar
‎07-21-2023
02:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Hiteshp
something like this?
Use the following code in a Formula tool, on the assumption that the start/end dates are in date format:
DateTimeFormat([Start Week],'%m/%d')+'-'+DateTimeFormat([End Week],'%m/%d')
‎07-21-2023
05:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello David,
Thank you for your response, I do have the start/end dates in date format, however i am still unable to get the desired results.
17 - Castor
‎07-22-2023
06:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Hiteshp it's because your field "Week" has a data type of "Date". Kindly change it to "V_WString" and you will get your desired output.
Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
