title: How to find time is today or yesterday in android
body: <p>I am developing an application for sending SMS. I am storing the current time and showing in the sent history page by retrieving the time from the database. In the sent history page I want to display the time of the message was sent. Here I want to check that the message has been sent today or yesterday or the the day before yesterday like that. If the message was sent yesterday means then I need to display &quot;Yesterday 20:00&quot; like that and even the message was sent yesterday before means &quot;Monday 20:00&quot;. I don't know how it has to be done. Please help me if anybody knows.</p>