title: How to get next day and previous day of a given date?
body: <p>How to get next day and previous day in Java when we know some date? For example, suppose <code>getBatchDate() = 2014-08-21</code>. How to get previous day and next day with lesser code?</p>