0

What is the format of this date ?

"Sun Jan 26 19:23:10 +0000 2014"

I want to save current time in this format.

Mayuri Ruparel
  • 694
  • 2
  • 11
  • 36

1 Answers1

2

Android/Java date is really saved as a Calendar/long object (underlying is long milliseconds since the origin, Jan 1970). You can parse from or print to any format using SimpleDateFormat class.

That format, I believe, is: "EEE MMM dd HH:mm:ss Z yyyy"

assuming that +0000 is timezone and not milliseconds.

user1676075
  • 3,056
  • 1
  • 19
  • 26