So I attached a some data that has a list of file names and at the end of these file names are a date. Can someone help me with extracting the date to it's own column and then making sure the dates are all the same format of mm-dd-YYYY? I've been wearing out my brain on this and I'm sure it's a simple answer and I need a second set of eyes.
Solved! Go to Solution.
@COrr
Hope this is what you need.
Hi @COrr
Here is my take on it. Using single formula
DateTimeFormat(
DateTimeParse(
Replace(
REGEX_Replace([File Name], "(.*)_([\d_-]{8,10})$", "$2")
, "_", "-")
,"%m-%d-%y")
,"%m-%d-%Y")
Steps:
1. Extract | 2. Replace _ to - | 3. Date parse | 4. Date Format
Output:
Workflow:
Hope this helps 🙂 Feel to ask if you have any questions
If this post helps you please mark it as solution. And give a like if you dont mind 😀👍
dude that is awesome! thank you! I was staring at this and my brain was hitting a brick wall for sure! thanks!
I absolutely always forget the Tokenize function! thank you!