Extract date and Time

Hello,
Is it possible to extract a date/ time from an imported excel file? It is currently reported as a string 2020112717161730.
Thanks in advance for the assist!
Best Answer
-
@DMurphy Thanks so much. The first formula worked perfectly. The 2nd gave me a weird results; 1716:17:30
Answers
-
@Katye Reed If all you need is the date, it is easy to stitch it together from that data field:
=DATE((VALUE(LEFT([Column41]@row, 4))), (VALUE((RIGHT(LEFT([Column41]@row, 6), 2)))), (VALUE((RIGHT(LEFT([Column41]@row, 8), 2)))))
... where your string is in Column41.
This only gets you date though. I do not believe there is any way to create and hold the time (speaking practically, not existentially).
If you want to display the data formatted as time, you could do this:
=VALUE(LEFT(RIGHT([Column41]@row, 8), 4)) + ":" + VALUE(LEFT(RIGHT([Column41]@row, 4), 2)) + ":" + VALUE(RIGHT([Column41]@row, 2))
... should give you this: 2020/11/27 1716:17:30.
Cheers,
Dale
-
@DMurphy Thanks so much. The first formula worked perfectly. The 2nd gave me a weird results; 1716:17:30
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.7K Get Help
- 438 Global Discussions
- 152 Industry Talk
- 497 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 509 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!