How to convert string such as "January 25, 2025 9:15 am" to a date?

tarak
✭✭
I am struggling to come up with a solution to convert a timestamp string to a date. The format of the timestamp has the month spelled out as in "January 25, 2025 9:15 am."
Many thanks,
TARA
Best Answer
-
- @tarak if you can't reformat the incoming data (which is the better way to do this).
1. Find ","
2. Find " "
3. month is 11 If then's for month text left of the " "
4. day column is right of the " "
5. year is everything to the right of the comma minus the " "
Recombine into one formula with date(year, month, day)
Principal Consultant | System Integrations
Prime Consulting Group
Email: info@primeconsulting.com
Follow us on LinkedIn! - @tarak if you can't reformat the incoming data (which is the better way to do this).
Answers
-
- @tarak if you can't reformat the incoming data (which is the better way to do this).
1. Find ","
2. Find " "
3. month is 11 If then's for month text left of the " "
4. day column is right of the " "
5. year is everything to the right of the comma minus the " "
Recombine into one formula with date(year, month, day)
Principal Consultant | System Integrations
Prime Consulting Group
Email: info@primeconsulting.com
Follow us on LinkedIn! - @tarak if you can't reformat the incoming data (which is the better way to do this).
-
Thank you. This works. I will look into other options for potentially getting the incoming data formatted, but for now I am able to move forward. Cheers!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.7K Get Help
- 472 Global Discussions
- 200 Use Cases
- 514 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 520 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 308 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!