I'm working with a date field which has dates in the following formats:
From a previous post, https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Inconsistent-Date-format-string/td-p/2..., I pieced together this formula:
IF IsNull([BILL_DATE]) then [BILL_DATE]
elseif Contains([BILL_DATE], '-') Then [BILL_DATE]
else Replace(REGEX_Replace([BILL_DATE],"(\d{1,2})/(\d{1,2})/(\d{4})","$3-0$1-0$2"),"-00","-0")
endif
But I'm getting the following results:
| [Null] |
| 2019-10-12 |
| 2019-06-01 |
| [Null] because it's converting to 2019-010-010 0:00 |
| 2019-08-06 |
I'm fairly new to Alteryx. Is this something that can be modified to work or do I need to take a completely different approach?
Solved! Go to Solution.
You can use the DateTime tool before a Formula -
Formula -
IF IsNull([DateTime_Out]) then [BILL_DATE]
ELSE [DateTime_Out]
ENDIF
User | Count |
---|---|
19 | |
14 | |
13 | |
9 | |
8 |