# Unable to parse date value '2022-12-16T10:55:22.000Z' of property 'UserSign.signDate' with configured converters

**URL:** <https://discuss.elastic.co/t/unable-to-parse-date-value-2022-12-16t1022-000z-of-property-usersign-signdate-with-configured-converters/312876>\
**Category:** Elasticsearch\
**Created:** [August 25, 2022, 7:23am UTC](https://discuss.elastic.co/t/unable-to-parse-date-value-2022-12-16t1022-000z-of-property-usersign-signdate-with-configured-converters/312876 "2022-08-25T07:23:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhou\_Mr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zhou_mr/32/110048_2.png) [@zhou\_Mr](https://discuss.elastic.co/u/zhou_Mr)\
**Post date:** [August 25, 2022, 7:23am UTC](https://discuss.elastic.co/t/unable-to-parse-date-value-2022-12-16t1022-000z-of-property-usersign-signdate-with-configured-converters/312876/1 "2022-08-25T07:23:15Z")

</div>

**Why can't the name attribute be mapped to the data in elasticsearch without adding it, but a date conversion error will occur after adding it？？？**

@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")  
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
@Field(name = "sign\_date", type = FieldType.Date, format = DateFormat.basic\_date\_time, pattern = "yyyy-MM-dd HH:mm:ss")  
private Date signDate;

**this is my test**

@Test  
public void MyTest10() {  
// Optional byId = myRepository.findById(185L);

```
    List<UserSign> userSignByUserId = myRepository.findUserSignByUserId(1L);
    for (UserSign u:userSignByUserId) {
        log.info("u ==> {}", u);
    }
}

```

**This is error feedback**  
org.springframework.data.elasticsearch.core.convert.ConversionException: Unable to parse date value '2022-12-16T10:55:22.000Z' of property 'UserSign.signDate' with configured converters

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 22, 2022, 7:23am UTC](https://discuss.elastic.co/t/unable-to-parse-date-value-2022-12-16t1022-000z-of-property-usersign-signdate-with-configured-converters/312876/2 "2022-09-22T07:23:27Z")

</div>

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