How do I convert "system" column "Created Date" to military time only (no date)?
![Ami Veltrie](https://us.v-cdn.net/6031209/uploads/userpics/8P0VG5OTWNRU/nHI3K0J42GX6A.jpg)
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
- Smartsheet Customer Resources
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!