# Date returns different date in a view

**URL:** <https://forum.djangoproject.com/t/date-returns-different-date-in-a-view/4211>\
**Category:** Using Django\
**Created:** [September 6, 2020, 5:00am UTC](https://forum.djangoproject.com/t/date-returns-different-date-in-a-view/4211 "2020-09-06T05:00:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CriticaIError](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/criticaierror/32/3275_2.png) [@CriticaIError](https://forum.djangoproject.com/u/CriticaIError)\
**Post date:** [September 6, 2020, 5:00am UTC](https://forum.djangoproject.com/t/date-returns-different-date-in-a-view/4211/1 "2020-09-06T05:00:11Z")

</div>

Hello, im wondering if im doing something wrong but when i use the date for example object.created it returns this:

Sept. 5, 2020, 10:03 p.m.

After using object.created.day i expect to see a 5 but instead i get a 6 and it literally ruins my entire check…

Thanks in advance for the help.

![image](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/2X/a/aa98024ec9744ad92bf0be145cd20c1c0164b975.png)

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [September 6, 2020, 5:14am UTC](https://forum.djangoproject.com/t/date-returns-different-date-in-a-view/4211/2 "2020-09-06T05:14:55Z")

</div>

I’m guessing this is one of those cases where you’ve got the date being stored or shown as UTC in one location and localized in another. But without seeing a lot more detail it’s going to be really tough to tell.
