Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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