title: Firebase Date Format - Best Practice to Bridge IoS and Android
body: <p>I built an operational Android app that stores / retrieves data in Firebase. I am now replicating the app in IoS / Swift. On Android I use Java Classes (POJOs) that include Java Date attributes. I store the whole class in Firebase. Below is a screenshot of what Firebase does with a Java Date. </p>
  
  <p>Here are my questions:</p>
  
  <ul>
  <li>Although it "Works" is Java Date not supported in FB?</li>
  <li>If Java Date is supported in FB, will a Swift Class with Date in it inter-operate with the Java-based Dates in Firebase? (I am new to Swift)</li>
  <li>What is the recommended best practice for Date format "Universality" across IoS and Android? A long int representing UTC?</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/wGmCz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wGmCz.png" alt="enter image description here"></a></p>