Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
prees959
Creator II
Creator II

Remove Seconds from hh:mm:ss

Hi,

I am importing data from a csv file which has some time fields eg

08:00:00

Is there a simple way to remove the ss portion of the time field ?

Many thanks,

Phil

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try first truncating the seconds from your timestamps first using floor() and then format it using time(), like:

=time(floor(timeField, 1/24/60),'hh:mm')

View solution in original post

8 Replies
Chanty4u
MVP
MVP

try this

Time#(Text(Time(Frac(UrFiled), 'hh:mm:ss')), 'hh:mm') as END_TM

YoussefBelloum
Champion
Champion

Hi,

try this:

=Time(Time#(Field,'hh:mm:ss'),'hh:mm')

chinnuchinni
Creator III
Creator III

You can use below script:

Time(fieldname,'hh:mm')

prees959
Creator II
Creator II
Author

Hi,  thanks for your replies - unfortunately after trying each solution I am still getting hh:mm:ss

YoussefBelloum
Champion
Champion

So try to attach some line on an excel file from your original column

tresesco
MVP
MVP

Try first truncating the seconds from your timestamps first using floor() and then format it using time(), like:

=time(floor(timeField, 1/24/60),'hh:mm')

prees959
Creator II
Creator II
Author

thank you !

Anonymous
Not applicable

here we go:

time#(text(time(floor(TIMESTAMP, 1/24/60),'hh:mm')),'hh:mm') as Time

this will create 1440 unique values, for the time field hh:mm, the numerical value will have no ss in it.

sunny regards