Depending on your settings, the message's timestamp is displayed in either a 12-hour or 24-hour format; to change the format your messages are displayed in, see [here](/help/change-the-date-and-time-format).
The message information tooltip offers more details on when a message was sent, such as its date. To view the message information tooltip, simply click on the name of the user that sent the message.