In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

General Discussions

Discuss any topics that are not product-specific here.
SOLVED

Date Format

Hiteshp
7 - Meteor

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.

 

 

3 REPLIES 3
davidskaife
14 - Magnetar

Hi @Hiteshp 

 

something like this?

image.png

 

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')

 

Hiteshp
7 - Meteor

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.

caltang
17 - Castor
17 - Castor

@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/
Labels
Top Solution Authors