0

I have a date/time that I get from a sqlite database and want to show in my Android app. I want it in the format :

9 November, 12:12. How do I do this? Is it best to format it before or after I enter it into the database?

kakka47
  • 3,479
  • 8
  • 44
  • 52

1 Answers1

0

See the answers to this question.

In your database, I would suggest you keep timestamps in there rather than the formatted strings. That way your program would still work if you decide to change the format later.

Community
  • 1
  • 1
spacehunt
  • 803
  • 5
  • 8
  • Thanks, found a nice link on one of the pages discussed in that link. http://developer.android.com/reference/android/text/format/DateFormat.html – kakka47 Jun 04 '11 at 16:50