Getting 24hr time when adding miliseconds to a Date? : <p>I have the following Java code that takes a date and should add a full day to the date:</p>

<pre><code>SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
String dateString = "2017-01-30T19:00:00+0000"
Date date = formatter.parse(dateString);

long timeBetweenStartDates = 24 * 60 * 1000;
Long DateWithOneDayAddedInMilis = date.getTime()+timeBetweenStartDates;
Date dateWithOneDayAdded = new Date((DateWithOneDayAddedInMilis));
</code></pre>

<p>The value I am getting for <code>dateWithOneDayAdded</code> is:</p>

<pre><code>Mon Jan 30 13:24:00 GMT 2017
</code></pre>

<p>What I am looking for here would be:</p>

<pre><code> Tue Jan 31 13:24:00 GMT 2017
</code></pre>

<p>How can I ensure that the date is in the format I expect?</p>
