# Python: Problem GET /crm/v3/objects/companies return datetime.datetime() object

**URL:** <https://community.hubspot.com/t/python-problem-get-crm-v3-objects-companies-return-datetime-datetime-object/68827>\
**Category:** APIs & Integrations\
**Created:** [November 8, 2022, 5:56pm UTC](https://community.hubspot.com/t/python-problem-get-crm-v3-objects-companies-return-datetime-datetime-object/68827 "2022-11-08T17:56:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shimi](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Shimi](https://community.hubspot.com/u/Shimi)\
**Post date:** [November 8, 2022, 5:56pm UTC](https://community.hubspot.com/t/python-problem-get-crm-v3-objects-companies-return-datetime-datetime-object/68827/1 "2022-11-08T17:56:59Z")

</div>

Api return datetime.datetime object like below:

```auto
{'source_id': 'userId:11135591',
 'source_label': None,
 'source_type': 'CRM_UI',
 'timestamp': datetime.datetime(2022, 7, 18, 19, 9, 37, 153000, tzinfo=tzutc()),
 'updated_by_user_id': 11135591,
 'value': 'Instagram;Texting;Event Planer;Gift Cards'}]

```

Instead to be:

‘timestamp’`:

`2022-7-18T19:9:37.615Z`

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 9, 2022, 6:14pm UTC](https://community.hubspot.com/t/python-problem-get-crm-v3-objects-companies-return-datetime-datetime-object/68827/2 "2022-11-09T18:14:18Z")

</div>

HI, @Shimi 👋 Thanks for reaching out. Can you provide any additional details, code snippets, or screenshots to help provide our community with additional information, please?

Hey, @taran42 @JBeatty, do you have any thoughts on specifically what else @Shimi can include to help with troubleshooting via the community?

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![taran42](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/taran42/32/105524_2.png) [@taran42](https://community.hubspot.com/u/taran42)\
**Post date:** [November 9, 2022, 7:05pm UTC](https://community.hubspot.com/t/python-problem-get-crm-v3-objects-companies-return-datetime-datetime-object/68827/3 "2022-11-09T19:05:14Z")

</div>

@Shimi I’m not sure what your code looks like, but below are some resources you can use to format your

datetime

.

[Python DateTime Format using Strftime() – PYnative](https://pynative.com/python-datetime-format-strftime/#:~:text=Use%20datetime.,hh%3Amm%3Ass%20format).

[https://www.w3schools.com/python/python\_datetime.asp](https://www.w3schools.com/python/python_datetime.asp)
