Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

Convert timestamp to date or time in a message thread

I'm trying to create a comment thread. I would like the message list to show the time instead of the date if the timstamp matches today's date.

I'm currently using this formula in a "DisplayDate" column :

 

IF(
 DATE([DateCreation])=TODAY(),
 TEXT(TIME([DateCreation])),
 TEXT(DATE([DateCreation]))
)

 

It seems to works, but how can I convert this result :

 

1:51:01 PM

 

Into :

 

13:51

 

?

Thanks for your help !

Solved Solved
0 2 137
1 ACCEPTED SOLUTION

IF(
 DATE([DateCreation])=TODAY(),
 TEXT(TIME([DateCreation]), "HH:MM"),
 TEXT(DATE([DateCreation]))
)

View solution in original post

2 REPLIES 2
Top Labels in this Space