I want to display a date in the following way:
- If it is today, then display the time only.
- If it is in the past week, then display "Yesterday", "Sunday", "Monday" etc.
- If it is more than one week ago, then display the actual date.
I am trying something to get something similar to how the date is displayed in the iPhone SMS application.