Excel Date format to number in JAVA : <p>I have a question:</p>

<p>I have the current date in a cell with date format like:</p>

<pre><code>5/12/2018
</code></pre>

<p>When I formatting this cell to a number (right click -> cell format -> number), I got this:</p>

<pre><code>43439,67
</code></pre>

<p>How can I get this number in Java? I tried:</p>

<pre><code>Date fecha = new Date();
System.out.println(fecha.getTime());
</code></pre>

<p>The result was:</p>

<pre><code>1544043888569
</code></pre>
