KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I saw all the post in here and still I can't figure how do get difference between two android dates. This is what I do: long diff = date1.getTime() - date2.getTime(); Date diffDate = new Date(diff); and I get: the date is Jan. 1, 1970 and the time is always bigger in two hours...I'm from Israel so the two hours is timeOffset. How can I get normal difference???
Tags (comma-separated)
Save Edits
Cancel