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
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 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!