I have set the milliseconds to 1390773600 in the constructor which translates to Sun, 26 Jan 2014 22:00:00. But as shown in the screenshot I keep getting 1970-01-16. What's going wrong here?
Asked
Active
Viewed 100 times
-2
-
convert milliseconds to date :http://stackoverflow.com/questions/8237193/java-convert-milliseconds-to-date – praveen Dec 31 '13 at 05:15
-
1The code is hardly visible. – Skynet Dec 31 '13 at 05:18
-
Right click on image 'Open Image in New Tab'. Click again to zoom in. – JanithaR Dec 31 '13 at 05:19
-
1Too much of work, for helping someone! – Skynet Dec 31 '13 at 05:22
-
Facepalm, thanks anyways. Found out what's wrong. – JanithaR Dec 31 '13 at 05:23
-
Next time paste the code in, don't use screenshots to represent text. – Dave Newton Dec 31 '13 at 12:28
1 Answers
0
No it doesn't.
1390773600 seconds does; milliseconds are seconds * 1000.

Dave Newton
- 158,873
- 26
- 254
- 302
-
But when I enter that time stamp in this http://www.onlineconversion.com/unix_time.htm it converts correctly. I'm very confused now. – JanithaR Dec 31 '13 at 05:14
-