IgnoreMalFormed

Hi ,

I have a C# DateTime Field as below

    [Date(Format = "yyyy-MM-ddThh:mm:ss",IgnoreMalformed =true)]
    public DateTime BirthdateTime { get; set; }

I'm getting below error , even after setting IgnoreMalformed =true, Is there anything I'm missing ?

Invalid format: "2017-12-05T17:04:01.4501539+05:30" is malformed at ".4501539+05:30"

Hi,

Is the index already created?
Can you share the index mapping? GET index_name/_mapping

Here is the mapping .

"CountryList" : {
"mappings" : {
"EsCountry" : {
"dynamic" : "strict",
"_meta" : {
"Comment" : "Test",
"Modified" : "2016-09-20T11:00:00",
"Created" : "2016-09-20T11:00:00"
},
"_all" : {
"enabled" : false
},
"properties" : {
"Created" : {
"type" : "date",
"index" : false,
"format" : "strict_date_hour_minute_second"
},
"Modified" : {
"type" : "date",
"index" : false,
"format" : "strict_date_hour_minute_second"
},
"Name" : {
"type" : "keyword"
}
}
}
}
}
}

This link helped to solve my issue .

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.