Failed to parse date time value 2018-11-17 02:46:57 in field hotel.createDateTime.

PUT test
{
“mappings”: {
“test”:{
“properties”: {
“hotel”:{
“properties”: {
“createDateTime”:{
“type”:“date”,
“format”: “yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis”
}
}
}
}
}
}
}

PUT test/test/1
{
“hotel”:{“createDateTime”:“2018-11-17 02:46:57”}
}

Failed to parse date time value 2018-11-17 02:46:57 in field hotel.createDateTime.

ES:6.3.2

It looks like you are trying to interact with the Elasticsearch REST API. May I then recommend you to redirect your question to Elasticsearch forums?