0

Timestamp which I use is in the format "YYYY-MM-DD HH:MM:SS" now I want it to convert it into corresponding relative time . Have searched a lot on this topic . I know DateUtils can be used to do this , but I cannot find any method in DateUtils that uses Timestamp as a parameter.

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
Ashwani
  • 1,574
  • 14
  • 28

1 Answers1

2

Check out the SimpleDateFormat class: http://developer.android.com/reference/java/text/SimpleDateFormat.html

soren.qvist
  • 7,376
  • 14
  • 62
  • 91