Skip to main content
Incorrect way to get Calendar. Should get from Calendar.getInstance instead of creating a new instance.
Source Link

You should use a Calendar instead:

Calendar start = new Calendar.getInstance(); start.setTimeInMillis( timeStampValue.getTime() ); 

You should use a Calendar instead:

Calendar start = new Calendar(); start.setTimeInMillis( timeStampValue.getTime() ); 

You should use a Calendar instead:

Calendar start = Calendar.getInstance(); start.setTimeInMillis( timeStampValue.getTime() ); 
Source Link
Jamie
  • 4.1k
  • 3
  • 30
  • 35

You should use a Calendar instead:

Calendar start = new Calendar(); start.setTimeInMillis( timeStampValue.getTime() );