formatDate
Formats the given date as a String. A normal implementation of this method would return a string like "Yesterday", "Saturday", "9:25 AM"/"9:25", ... It is used to format the date of the last message in the channel list and the when an user voted in a poll.
Return
The formatted date-time string.
Parameters
date
The Date to format as a String.