title: Derby/JavaDB: TIMESTAMP and BIGINT data types - which is better to store the date?
body: <p>I'm a little bit confused - I want to store the date in JavaDB/Derby database, but which data type is better to use?</p>
  
  <p>I can simply store <code>Long</code> like <code>System.currentTimeMillis()</code> and save it to database in <code>BIGINT</code> format. Later I can format it as I want.</p>
  
  <p>Or I can store it like <code>TIMESTAMP('1962-09-23 03:23:34.234')</code> using <code>TIMESTAMP</code> data type.</p>
  
  <p>Which way is more efficient?</p>