How can we get only the first three characters of the month from a date field using a scripted field in kibana painless? Using getMonth() fetches the entire month. thanks
def month = doc['order_date'].value.getMonth().toString().substring(0,3); return month;
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.