I want to get the milliseconds since epoch of thousands of points, each with different timestamps. Here is what I believe I need to do, but my Google Earth Engine knowledge is limited and I can't find a good way to do this:
Upload a shapefile with a column containing date/time (DONE)
Set the time/date string as a Date column (using
.set()
) and convert it to a Date object withee.Date()
)Calculate the "time" column using
.millis()
on the column created in step 2
My best effort so far has been this:
var times = points.set('timestamp', ee.Date(points.select('timestamp')).millis());
where: (timestamp = the "date/time" column, formatted as dd/MM/YYYY HH:mm:ss) (points = name of uploaded shapefile table, the FeatureCollection)
The console error says: FeatureCollection (Error) Date: Cannot interpret as a Date.