How do I convert "system" column "Created Date" to military time only (no date)?
My intent for doing this is so that I can use the result to calculate the number of hours/minutes between two timestamps.
OR...can it be done without converting to military time?
Answers
-
HI @Ami Veltrie
Unfortunately the created column is locked in its formatting but you can extract the time portion from the cell for your calculation using a helper column, something like this?
The formula for this is:
=RIGHT(Created@row, 5)
Hope that helps.
Thanks
Paul
-
@Paul McGuinness I need to convert to military time so that I can subtract start time from end time.
-
Hi @Ami Veltrie
You could use the helper column for your calculations or you could use the formula above directly in your calculation to work out the time taken.
What exactly are you trying to work out from the start and end times?
is it time taken? and if so in what measurement minutes or minutes and hours?
Thanks
Paul
-
We are trying to use Smartsheet as a time tracker. Clock in time, clock out time, and then calculate the number of hours worked.
First I am having to change the timestamp "Time (Helper)" to military, so that it will result in minutes, then changing back to hours in the "Hours" column.
Here's the formula in "Timestamp In (Military)" column:
=((VALUE(LEFT([Time (Helper)]@row, FIND(":", [Time (Helper)]@row) - 1)) - IF(VALUE(LEFT([Time (Helper)]@row, FIND(":", [Time (Helper)]@row) - 1)) = 12, 12, 0) + IF(RIGHT([Time (Helper)]@row, 2) = "pm", 12, 0)) + MID([Time (Helper)]@row, FIND(":", [Time (Helper)]@row) + 1, 2))
Here's the formula in the "Minutes" column.
=((VALUE(LEFT([TEMP Timestamp Out (Military)]@row, 2)) + VALUE(RIGHT([TEMP Timestamp Out (Military)]@row, 2)) / 60) - (VALUE(LEFT([Timestamp In (Military)]@row, 2)) + VALUE(RIGHT([Timestamp In (Military)]@row, 2)) / 60)) * 60
The formula works when the "Timestamp In (Military)" is "PM" (four digits), but not when it's "AM" (three digits).
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!