Q:

getting lastmodified date of image using HTML5 tag

I have tried to use the HTML5 tag to capture image with smartphone (android, iOS, windows) camera or choose image from gallery. It is an ionic project, which has to run with web browser (without installing app on phone) on apache server.
<input id="camera" type="file" accept="image/*" >

Now I need to get the lastmodified date of gallery image to check the age of the images which is selected.
But I didn't find any working solution... can anyone help me?
It would be very nice...
Thanks so much!
Greetings
---edited---
Thanks for the solution:
var fileInput = document.getElementById("myFileInput")
var file = fileInput.files[0]
var lastModified = fileInput.files[0].lastModified

But this doesn't work with iOS... 
The content of file object (file) in...
OSX chrome:
{"0":{}}

android chrome:
{"0":{}}

safari iPhone:
{"0":{},"length":1}

I don't know why this object doesn't show more attributes... because on chrome for OSX and Android file.lastModified shows the date in ms.
is there anybody who can help out here?
Thanks so much!

A:

It seems like it's possible like so:
var fileInput = document.getElementById("myFileInput")
var file = fileInput.files[0]
var lastModified = fileInput.files[0].lastModified

Here's a fiddle:
jsFiddle

