Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

custom date

AustinBauer
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")

4 REPLIES 4
tcroberts
12 - Quasar

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!

ponraj
13 - Pulsar

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

 

 

 

WorkflowWorkflowResultsResults

AustinBauer
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?
ponraj
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