How can i check that 2 dates between period(month) <p>i have 2 Date (<code>start_date</code>, <code>end_date</code>) with yyyy-MM-dd format and i want to check that if the month between in december 01 - march 31 then do something. For example my <code>start_date</code> is 2015-12-01 or 2016-02-01 and <code>end_date</code> 2016-02-12 then write something. I have this</p> <pre><code>public void meethod(){ DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); Date startDate = null; Date endDate = null; try { startDate = df.parse(tf_start_date.getText()); endDate = df.parse(tf_end_date.getText()); } catch (ParseException e) { e.printStackTrace(); } if( /* what goes here? */ ) { System.out.println("its between december-march"); } else { } } </code></pre> <p><code>tf_start_date</code> and <code>tf_end_date</code> is a TextField and the value of TextFields like 2015-02-03</p>