# JIRA Rest API: Question about date formatting

**URL:** <https://community.developer.atlassian.com/t/jira-rest-api-question-about-date-formatting/52498>\
**Category:** Jira Cloud\
**Tags:** date-format, date, date-time, rest-api\
**Created:** [September 30, 2021, 9:28pm UTC](https://community.developer.atlassian.com/t/jira-rest-api-question-about-date-formatting/52498 "2021-09-30T21:28:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasGriffiths](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@ThomasGriffiths](https://community.developer.atlassian.com/u/ThomasGriffiths)\
**Post date:** [September 30, 2021, 9:28pm UTC](https://community.developer.atlassian.com/t/jira-rest-api-question-about-date-formatting/52498/1 "2021-09-30T21:28:40Z")

</div>

Hello fellow developers,

I’m trying to get all comments on all issues within a project using this url:  
/rest/api/2/search?jql=project%20%3D%20${project.key}&expand=renderedFields&fields=id,comment

The comment created and updated dates are formatted like this “Today 9:09 PM”. This is super unhelpful when trying to convert to a python datetime. Is there something I can add to the url to get date fields in ISO format? Like a expand=dates option or something? (Asking our clients to configure their sites to use absolute datetimes is not an option). Also I’m using v2 in order to get the html content of the comment. v3 currently does not support this.

Any help would be appreciated,  
Thanks!

---

<div class="post-metadata">

**Author:** ![anon96974232](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anon96974232](https://community.developer.atlassian.com/u/anon96974232)\
**Post date:** [September 30, 2021, 10:25pm UTC](https://community.developer.atlassian.com/t/jira-rest-api-question-about-date-formatting/52498/2 "2021-09-30T22:25:21Z")

</div>

Hello @ThomasGriffiths

In the response, the **renderedFields** object contains the dates as _rendered_ to the user, in HTML, on the web page:

_“created”: “01/Sep/21 4:43 PM”_

The response should also contain the matching **fields** object, which will contain the dates in the underlying UTC encoded format you’re looking for:

_“created”: “2021-09-01T16:43:14.492+1000”_

---

<div class="post-metadata">

**Author:** ![ThomasGriffiths](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@ThomasGriffiths](https://community.developer.atlassian.com/u/ThomasGriffiths)\
**Post date:** [September 30, 2021, 10:41pm UTC](https://community.developer.atlassian.com/t/jira-rest-api-question-about-date-formatting/52498/3 "2021-09-30T22:41:46Z")

</div>

Oh I see! I didn’t realize renderedFields would change the date fields. Turns out the response includes both a fields and a renderedFields property. The raw dates can be found in the fields property. So I had access to the ISO dates all along 😅. Thanks so much for your help!
