Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
ALTER.NEXT:

Join us on Dec 2 for a half-day virtual analytics + data science event!
US & CA customers only

SAVE YOUR SPOT
It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!
SOLVED

custom date

Highlighted
7 - Meteor

Hi I currently have a date like this 1/29/2018 and I am trying to padleft to put a "0" at the beginning of this date. However, it is not working for me. 

 

My date is currently in a V_String format and I am using this formula: 

 

PadLeft(ToString([START DATE]), 2, "0")

Highlighted
Alteryx Partner

Is there a reason why:

 

"0" + [START DATE]

 

wouldn't work here? I'm looking into why your implementation isn't working, but I think it can be done in a much simpler way.

 

Let me know if this helps,

 

Cheers!

Highlighted
13 - Pulsar

You can also use date time tool to get the desired results. 

 

 

 

WorkflowWorkflowResultsResults

Highlighted
7 - Meteor
The issue then becomes I have dates that will look like "010/29/2018". Months 10,11, and 12 have an extra 0 in front. This would work, but what formula could I use to remove this leading 0 on these 3 months?
Highlighted
13 - Pulsar

The workflow I shared will work for your case.  Just share the sample data with all the possible combination in case the workflow I shared not working. 

Labels