# Python Activity: Get Python Object Issue

**URL:** <https://forum.uipath.com/t/python-activity-get-python-object-issue/56202>\
**Category:** Help\
**Tags:** studio, python, activities\
**Created:** [August 8, 2018, 11:39am UTC](https://forum.uipath.com/t/python-activity-get-python-object-issue/56202 "2018-08-08T11:39:40Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![rohan.joshi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rohan.joshi/32/176950_2.png) [@rohan.joshi](https://forum.uipath.com/u/rohan.joshi)\
**Post date:** [February 6, 2019, 8:19pm UTC](https://forum.uipath.com/t/python-activity-get-python-object-issue/56202/22 "2019-02-06T20:19:32Z")

</div>

@sandhya.dev01 load python script returns the python object itself. Why do you want to use get python object?

---

<div class="post-metadata">

**Author:** ![prameelaj](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@prameelaj](https://forum.uipath.com/u/prameelaj)\
**Post date:** [March 15, 2019, 5:33pm UTC](https://forum.uipath.com/t/python-activity-get-python-object-issue/56202/23 "2019-03-15T17:33:26Z")

</div>

Hi, I have a situation where I am passing the body of the email to the python code and retrieving couple of values by defining different methods in the python code. The same code finds the date in the body using date finder and returns the value. Below is the python code I use for retrieving the date. When I display the date in uipath, instead of 4/1/2019 or 04-01-2019 00:00:00, it displays just 2. Can anyone help me on this?

def extract\_date(BodyContent):  
date = datefinder.find\_dates(BodyContent)  
for match in date:  
matches = str(match)  
result = matches  
return(result)

---

<div class="post-metadata">

**Author:** ![veerishu](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/veerishu/32/107956_2.png) [@veerishu](https://forum.uipath.com/u/veerishu)\
**Post date:** [April 1, 2020, 6:55am UTC](https://forum.uipath.com/t/python-activity-get-python-object-issue/56202/24 "2020-04-01T06:55:20Z")

</div>

Hi

I have a similar problem. My script is returning a JSON data, how can I display that in a message box ?

[Previous page](https://forum.uipath.com/t/python-activity-get-python-object-issue/56202.md?page=1)
