# Elasticsearch spring boot integration date issue

**URL:** <https://discuss.elastic.co/t/elasticsearch-spring-boot-integration-date-issue/162026>\
**Category:** Elasticsearch\
**Created:** [December 24, 2018, 7:52pm UTC](https://discuss.elastic.co/t/elasticsearch-spring-boot-integration-date-issue/162026 "2018-12-24T19:52:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![udaysarika](https://avatars.discourse-cdn.com/v4/letter/u/a4c791/32.png) [@udaysarika](https://discuss.elastic.co/u/udaysarika)\
**Post date:** [December 24, 2018, 7:52pm UTC](https://discuss.elastic.co/t/elasticsearch-spring-boot-integration-date-issue/162026/1 "2018-12-24T19:52:52Z")

</div>

Hi All,

We are in the process of doing elasticsearch spring boot integration POC. We were stuck with data format issues during date save. Below are the details of my example.

elasticsearch-6.4.0  
Spring Boot 2.1.0.RELEASE

**Vo Property:**  
//@Field(type = FieldType.Date, format = DateFormat.custom, pattern = "dd.MM.yyyy hh:mm")  
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")  
//@Field(type = FieldType.Date, index = FieldIndex.not\_analyzed store = true, format = DateFormat.custom , pattern = "dd/MM/yyyy")  
private Date appSubDate;

**DAO Method:**  
public List getAllApplications()  
{  
List applyVo = new ArrayList();  
try{  
applyVo=getJdbcTemplate().query("select app\_key appKey,APP\_FIRST\_NAME appFirstName, APP\_LAST\_NAME appLastName, to\_char(app\_sub\_date, 'yyyy-MM-dd') appSubDate from APPLICATION where NBR=?", new Object{"Number"}, new BeanPropertyRowMapper(ApplyVo.class));  
}catch(Exception e){  
System.out.println(e.getMessage());  
}

```
	return applyVo;
}

```

**Error:**  
Caused by: org.elasticsearch.action.ActionRequestValidationException: Validation Failed: 1: no requests added;

---

<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:** [January 21, 2019, 7:52pm UTC](https://discuss.elastic.co/t/elasticsearch-spring-boot-integration-date-issue/162026/2 "2019-01-21T19:52:58Z")

</div>

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