What will be mapping format for date?


(Ankita Ghosh) #1

2018-08-23 06:39:53.821362+00

for this format I am creating mapping
"date": {
"type": "date",
"format" : "yyyy-MM-dd hh:mm:ss.SSSSSS+00"
}

giving format exception


(Henning Andersen) #2

Hi @Ankita_Ghosh,

this seems to work for me on 6.7, which version are you on?

The +00 is a timezone offset and it could be beneficial to use Z in the format instead to signal that it is the timezone, I believe having +00 in the format will simply be a required constant.