I need help extracting a date from a string of text. I tested each component (year, month, day) separate and get the right result. However, when I put the extraction formulas together in a DATE formula (in a Date column type) I get INVALID DATA TYPE.
Sample text string: 2025-10-20T23:26:16+03:00
Formulas that work individually:
- Year—> =LEFT([Course completed]@row , 4),
- Year returns 2025 from sample string above
- Month —> =LEFT(REPLACE([Course completed]@row , 1, 5, ""), 2)
- Month returns 10 from sample string above
- Day —> =LEFT(REPLACE([Course completed]@row , 1, 8, ""), 2)
- Day returns 20 from sample string above
DATE formula with error:
=DATE(LEFT([Course completed]@row , 4), LEFT(REPLACE([Course completed]@row , 1, 5, ""), 2), LEFT(REPLACE([Course completed]@row , 1, 8, ""), 2))