 <p>If you just need the time part of your <code>Date</code> object and you can't use Java 8 and don't want to use any third party framework, then use <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html" rel="nofollow"><code>Calendar</code></a>:</p> <pre><code>Calendar c = Calendar.getInstance(); c.setTime(yourDate); c.set(Calendar.YEAR, 0); c.set(Calendar.MONTH, 0); c.set(Calendar.DAY, 0); Date timeOnly = c.getTime(); </code></pre>