title: Get the added/modified/taken date of the video from MediaStore
body: <p>Where do I get the taken date of the video from MediaStore? I got the following fields from MediaStore. </p>
  
  <pre><code>MediaStore.Video.Media.DATE_MODIFIED
  MediaStore.Video.Media.DATE_TAKEN
  MediaStore.Video.Media.DATE_ADDED
  </code></pre>
  
  <p>Those fields returned seemly default values - </p>
  
  <pre><code>dateModified: 1477043336
  dateTaken: 1477043336000
  dateAdded: 1477043352
  </code></pre>
  
  <p>Formatted dates - </p>
  
  <pre><code>dateModified: 01/01/1970
  dateTaken: 01/01/1970
  dateAdded: 01/01/1970
  </code></pre>
  
  <p>I double checked the stock gallery > random video file and I do see the correct dates. I looked at the video columns in MediaStore and I didn't see any other columns which has correct dates.</p>
  
  <pre><code>    SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
      String formattedDate = dateFormat.format(new Date(row.getColumnIndex(MediaStore.Video.Media.DATE_MODIFIED)));
  
      String dateModified = dateFormat.format(new Date(row.getColumnIndex(MediaStore.Video.Media.DATE_MODIFIED)));
      String dateTaken = dateFormat.format(new Date(row.getColumnIndex(MediaStore.Video.Media.DATE_TAKEN) * 1000L));
      String dateAdded = dateFormat.format(new Date(row.getColumnIndex(MediaStore.Video.Media.DATE_ADDED) * 1000L));
  
      Log.d(TAG, "dateModified: "+dateModified);
      Log.d(TAG, "dateTaken: "+dateTaken);
      Log.d(TAG, "dateAdded: "+dateAdded);
  
      Log.d(TAG, "dateModified: "+row.getString(row.getColumnIndex(MediaStore.Video.Media.DATE_MODIFIED)));
      Log.d(TAG, "dateTaken: "+row.getString(row.getColumnIndex(MediaStore.Video.Media.DATE_TAKEN)));
      Log.d(TAG, "dateAdded: "+row.getString(row.getColumnIndex(MediaStore.Video.Media.DATE_ADDED)));
  </code></pre>