My Scripted Fields with Kibana Dates Get the year doc['incident_date'].date.year Calculating difference in days between 2 dates (doc['report_date'].date.getMillis() - doc['incident_date'].date.getMillis()) / 1000 / 60 / 60 / 24