android - Convert from UNIX Timestamp to "Today at: currentTime" using Java -


I have tried to convert a Unix timestamp to today's date time.

Like I have a simple UNIX timestamp and then I want to change it like this:

here today: theTimeFromMyTimestamp

Who has the right solution for this?

Thanks in advance!

try this DateFormat.getDateFormat (mContext) .format (new date (myTimestamp * 1000) ))

As new date () requires a millisecond instead of seconds, you get 1000 for 1000 plus


Comments