Separating date and time
We have a timecard system that generates a report for us, however it lists "Time in" and "Time out" in the format: mm/dd/yy HH:MM (military time).
For example:
I need to separate these into their own columns, Date and Time. Any idea how I can do that?
Answers
-
I would use FIND to determine the position of the second slash, and use that position with LEFT to get the date portion.
=LEFT(DateTimeColumnname@row, (FIND("/", DateTimeColumnname@row, 4) + 4))
This says to find the position of the slash starting with the 4th position from the left and going right, add 4 to that, and give me everything to the LEFT of that position.
Then if you use =RIGHT(DateTimeColumnname@row, 5) you should get the time portion.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 129 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!