title: Convert milliseconds to TDateTime in Java
body: <p>I'm in an Android project that requires saving a file with <code>TDateTime</code> type (Delphi). I have my date in milliseconds, but I don't know how to convert milliseconds to <code>TDateTime</code>.</p>
  
  <p>I have something like this:</p>
  
  <pre><code>Date dateInMillis = new Date(System.currentTimeMillis());
  double dateInDouble = ???;
  </code></pre>
  
  <p>I'll be glad for any tips that can help me to resolve this.</p>