# REST API GET History Process Failed to parse date on any of the date-time parameters

**URL:** <https://forum.flowable.org/t/rest-api-get-history-process-failed-to-parse-date-on-any-of-the-date-time-parameters/5684>\
**Category:** Flowable Engine\
**Created:** [March 22, 2020, 6:01pm UTC](https://forum.flowable.org/t/rest-api-get-history-process-failed-to-parse-date-on-any-of-the-date-time-parameters/5684 "2020-03-22T18:01:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pt35468](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pt35468](https://forum.flowable.org/u/pt35468)\
**Post date:** [March 22, 2020, 6:01pm UTC](https://forum.flowable.org/t/rest-api-get-history-process-failed-to-parse-date-on-any-of-the-date-time-parameters/5684/1 "2020-03-22T18:01:28Z")

</div>

Using Postman when running REST API GET Historic-process-instance using any of the query date-time parameters

I get

{  
“message”: “Bad request”,  
“exception”: “Failed to parse date 2020-03-17T14:49:45.494GMT-04:00”  
}

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/5/517d5a1ce90f67c3aba0d76099a3b59c712522aa.png)

However …

Using Postman I can successfully run the following REST API POST QUERY Historic-process-instance

{  
“processDefinitionKey”: “MOWResearchRefunds”,  
“startedAfter”: “2020-03-17T14:49:45.494-04:00”,  
“includeProcessVariables”: “false”  
}

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [March 25, 2020, 8:37am UTC](https://forum.flowable.org/t/rest-api-get-history-process-failed-to-parse-date-on-any-of-the-date-time-parameters/5684/2 "2020-03-25T08:37:11Z")

</div>

How are you passing the request parameters in the URL? Any reason why you prefer the GET, if the POST gives you the same?

---

<div class="post-metadata">

**Author:** ![pt35468](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pt35468](https://forum.flowable.org/u/pt35468)\
**Post date:** [March 26, 2020, 11:24am UTC](https://forum.flowable.org/t/rest-api-get-history-process-failed-to-parse-date-on-any-of-the-date-time-parameters/5684/3 "2020-03-26T11:24:26Z")

</div>

/process-api/history/historic-process-instances/?includeProcessVariables=false&sort=startTime&order=desc&finished=true&size=9999&startedAfter=2020-03-17T14:49:45.494-04:00&businessKey=MOWResearchRefunds

Mainly just curious how to correctly pass dates in the GET API using parameters instead of using a POST Query and passing through JSON

---

<div class="post-metadata">

**Author:** ![dcwik96](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dcwik96](https://forum.flowable.org/u/dcwik96)\
**Post date:** [February 26, 2021, 11:16am UTC](https://forum.flowable.org/t/rest-api-get-history-process-failed-to-parse-date-on-any-of-the-date-time-parameters/5684/4 "2021-02-26T11:16:11Z")

</div>

Any solution? I have the same problem

```
Request URL:
localhost:8080/process-api/history/historic-process-instances?size=10&start=0&order=desc&sort=startTime&startedAfter=2021-02-11T00:00:00.000Z&includeProcessVariables=true
exception: "Failed to parse date 2021-02-11T00:00:00.000-00:00"
message: "Bad request"
```

---

<div class="post-metadata">

**Author:** ![pt35468](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pt35468](https://forum.flowable.org/u/pt35468)\
**Post date:** [February 26, 2021, 12:26pm UTC](https://forum.flowable.org/t/rest-api-get-history-process-failed-to-parse-date-on-any-of-the-date-time-parameters/5684/5 "2021-02-26T12:26:49Z")

</div>

I ended up using the POST

[https://XXXXXXXX/process-api/query/historic-process-instances](https://XXXXXXXX/process-api/query/historic-process-instances)

with the following json

{

“processDefinitionKey”: “xxxxxxxxxx”,

“startedAfter”: “2020-06-15T00:00:00.000”,

“startedBefore”: “2021-06-18T00:00:00.000”,

“includeProcessVariables”: “true”,

“size”:“50”

}
