Forum Discussion
Justas4478
2 years agoPost Prodigy
Extracting date from source source.name text
Hello, I have folder with multiple files. names are consistent and numbers represent week ending date. For example 240324 is 24/03/2024. I was trying to extract date since I need to keep onl...
- 2 years ago
Justas4478
You can use the below code and create a custom column. (Paste the below code in custom column window and replace the [Data] with your column name.#date(Number.From("20" & Text.Range(Text.BetweenDelimiters([Data], "-","."),4,2) ), Number.From(Text.Range(Text.BetweenDelimiters([Data], "-","."),2,2)) ,Number.From(Text.Range(Text.BetweenDelimiters([Data], "-","."),0,2)))If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
tharunkumarRTK
2 years agoSuper User
Justas4478
You can use the below code and create a custom column. (Paste the below code in custom column window and replace the [Data] with your column name.
#date(Number.From("20" & Text.Range(Text.BetweenDelimiters([Data], "-","."),4,2) ), Number.From(Text.Range(Text.BetweenDelimiters([Data], "-","."),2,2)) ,Number.From(Text.Range(Text.BetweenDelimiters([Data], "-","."),0,2)))
If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
Justas4478
2 years agoPost Prodigy
tharunkumarRTK It is working thank you.