Formatting local time in java : <p>I'm creating my JavaFX application and I need to use time label every time new list cell is created. I need to put the string with current time in <code>HH:MM</code> format directly into Label constructor which takes <code>String</code> as a parameter.</p>

<p>I found and used <code>java.util.Date</code>'s:</p>

<pre><code>Label timeLabel = new Label(new SimpleDateFormat("HH:MM").format(new Date()));
</code></pre>

<p>but it shows the wrong time zone, so I'm going to use <code>java.time</code> and <code>LocalTime</code> class.</p>

<p>Is there any way to achieve same string result in one line?
Thank You for your help :)</p>
