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

Alteryx Designer Desktop Discussions

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

Formulas not detecting the forward Slash in a V_String Date Field.

rgusaas
8 - Asteroid

I am appending daily files together into a single stack and am having a problem formatting a V_String formatted Date/Time field.  The data in the string field comes in two formats:

 

1/12/2017 1:00:08 PM

AND

2017-01-12 13:00:08

 

I have a multi-field tool that first strips off the time using a simple GetWord function.

Next, I have written a formula to parse the year, month, day for only the records with the forward slash (/) again using the multi-field tool. The date/time tool will format the first example but returns a null value for the second format.

 

I have tried several formulas to detect the forward slash and none work.

 

Example attached.

 

Suggestions?

 

Thanks in advance.

Contains("/", [New_PROCESSTIME]) returns all false

IIF(FindString("/", [PROCESSTIME]) >0, "true","false")

 

 

2 REPLIES 2
patrick_digan
17 - Castor
17 - Castor

@rgusaas Try flipping the order of your formula:

 

Contains([New_PROCESSTIME],"/")

 

rgusaas
8 - Asteroid

I am embarrassed.

 

Thank you for your time.

Labels
Top Solution Authors