The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Identify Actual Date Data

Johmz
アステロイド

I need help creating workflow identifying if the data provided is actual Date if not consider as false information.  Thanks in advance

9件の返信9
cjaneczko
パルサー

Can you provide an example? Not sure what you  mean.

aatalai
オーロラ

@Johmz initial guess would be use the directory tool as that will provide information like file path, dates relating to creation (from memory) and that might have the information you would need.

 

But if not like @cjaneczko more information would help

Johmz
アステロイド
DATAIs it Date
11/23/202311/23/2023
BrittanyFalse Information
New YorlFalse Information
01/07/202401/07/2024
cjaneczko
パルサー

Something like this will work in a formula tool.

 

 

 

if isnull(DateTimeParse([DATA],'%m/%d/%Y')) then 'False Information' else datetimeformat(DateTimeParse([DATA],'%m/%d/%Y'),'%m/%d/%Y') endif

 

 

image.pngimage.png

Johmz
アステロイド

thanks for helping. This workflow will help me to complete my project. 

Johmz
アステロイド

Hi @cjaneczko 

 

I have changes to workflow that if the DATA is Actual Date the result should be True Data. I tried to changed the syntax but i not the actual result.. 

cjaneczko
パルサー

So instead of the date showing you just want the it to say 'True Data' in text? Altering the formula to the below should do that.

 

if isnull(DateTimeParse([DATA],'%m/%d/%Y')) then 'False Information' else 'True Data' endif

 

cjaneczko
パルサー

Actually dont use the above. It can lead to false positives. Try the following in a formula tool instead.

 

IF regex_match([DATA],"[01]{0,1}\d\/[0-3]*\d\/20\d{2}") then 'True Date' else 'False Information' endif

image.pngimage.png

Johmz
アステロイド

It's now working. Thanks for the help. much appreciated

ラベル
トップのソリューション投稿者