Internally (within the index), Elasticsearch saves all dates as numbers in epoch format, i.e. the number of milliseconds since January 01, 1970 00:00:00 GMT.
However, Elasticsearch also saves your raw JSON message by default, so when you return _source you will see everything that was sent to Elasticsearch.
To be able to import date strings into epoch format, you need to specify the format in your mapping, for example, or a predefined date format
"t": { "type" : "date", "format" : "basic_date_time" }
for yyyyMMdd'T'HHmmss.SSSZ .
or specify a custom date format :
"t": { "type" : "date", "format" : "YYYY-MM-dd" }
source share