02-24-2011 04:04 AM
1. I run following code on Core java.
long datemilis = 1304290800000l;
System.out.Println(new Date(datemilis ));
Output: Mon May 02 00:00:00 BST 2011
2. After That i Run Same Code in Blackberry and Output is:
Output: Sun May 01 23:00:00 GMT 2011
There are one Day Diference how to solve this..
02-24-2011 04:24 AM
it's only 1h difference. most likely something related to the timezone of the simulator.
02-24-2011 09:33 AM
Simon is correct, BST is GMT +0100 so the difference between the two is that. BB stores dates in GMT, so you can use SimpleDateFormat to easily get it to print out in the timezone of the phone or simulator.