Convert String/Text to Date Object
I have a piece of text that is coming through as 2021-06-15T00:00:00Z and I need to parse this as 06/15/2021 and convert it a Date object so that comparisons can be made on it. How would I achieve that?
Tags:
Answers
-
Hello,
If you obtain the strings in the correct order, and if the text you get is always the same, try this:
=MID(datestring@row, 6, 2) + "/" + MID(datestring@row, 9, 2) + "/" + LEFT(datestring@row, 4)
change the column type to date and it should be converted
let me know if this solve the issue, and please mark as answer
Regards
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.4K Get Help
- 394 Global Discussions
- 213 Industry Talk
- 449 Announcements
- 4.6K Ideas & Feature Requests
- 141 Brandfolder
- 132 Just for fun
- 131 Community Job Board
- 453 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 293 Events
- 35 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!