title: Convert current time in milliseconds to Date Time format in Scala
body: <p>Really simple question, but I can't find a simple explanation anywhere. I want to get the current time in milliseconds:</p>
  
  <pre><code>val current = System.currentTimeMillis()
  </code></pre>
  
  <p>and convert the result into a Date Time format such as <code>2017-02-11T15:16:38.437Z</code>.
  This is for Scala, if the question was unclear.</p>