× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Display dates in multiple fragments

Xaver Kapeller
Mar 13, 2015
<p>I'm not sure I understand what the problem is, but you can get tomorrows date or any date relative to the current time like this:</p> <pre><code>Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.DAY_OF_YEAR, numberOfDaysToAdd); Date date = calendar.getTime(); </code></pre> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/22590206/Display%20dates%20in%20multiple%20fragments/22590347">Stack Overflow</a>.</p>
comments powered by Disqus