# date function getting different results on different desktop TDA's

**URL:** <https://forums.toadworld.com/t/date-function-getting-different-results-on-different-desktop-tdas/6941>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [October 27, 2011, 10:27am UTC](https://forums.toadworld.com/t/date-function-getting-different-results-on-different-desktop-tdas/6941 "2011-10-27T10:27:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lisa.n.EvansBoley\_35](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/lisa.n.evansboley_35/32/49_2.png) [@Lisa.n.EvansBoley\_35](https://forums.toadworld.com/u/Lisa.n.EvansBoley_35)\
**Post date:** [October 27, 2011, 10:27am UTC](https://forums.toadworld.com/t/date-function-getting-different-results-on-different-desktop-tdas/6941/1 "2011-10-27T10:27:01Z")

</div>

I have a view that uses the Datepart function and weekday as the parmeter. When go to the view in TDA it is fine. On one of our desktops the datepart function runs differently and provides different results when viewed in TDA for this particular machine. What settings should I check to ensure that all of our TDA’s are using the same date credentials. I am under the assumption that this particular box has a different date criteria.

---

<div class="post-metadata">

**Author:** ![Debbie\_Peabody](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/debbie_peabody/32/18_2.png) [@Debbie\_Peabody](https://forums.toadworld.com/u/Debbie_Peabody)\
**Post date:** [October 27, 2011, 10:49am UTC](https://forums.toadworld.com/t/date-function-getting-different-results-on-different-desktop-tdas/6941/2 "2011-10-27T10:49:57Z")

</div>

DatePart should give different results from pc to pc that I know of. I would check the following thins:

1. Regional settings of the pc from the control panel. Look for different region or date format.
2. Go to TDA Options | Environment | Grid. Look at the DataTIme and custom Format tabs for differences.

If it is still not obvious please post screenshots of the differences, include what database platform you are using and attach a support bundle from each of the pcs that are different.

You can send my private email if you like. [dpeabody@quest.com](mailto:dpeabody@quest.com)

Debbie

---

<div class="post-metadata">

**Author:** ![Debbie\_Peabody](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/debbie_peabody/32/18_2.png) [@Debbie\_Peabody](https://forums.toadworld.com/u/Debbie_Peabody)\
**Post date:** [October 27, 2011, 10:53am UTC](https://forums.toadworld.com/t/date-function-getting-different-results-on-different-desktop-tdas/6941/3 "2011-10-27T10:53:17Z")

</div>

Correction to my last post --\> Datepart should NOT give different results.

---

<div class="post-metadata">

**Author:** ![Lisa.n.EvansBoley\_35](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/lisa.n.evansboley_35/32/49_2.png) [@Lisa.n.EvansBoley\_35](https://forums.toadworld.com/u/Lisa.n.EvansBoley_35)\
**Post date:** [October 28, 2011, 8:51am UTC](https://forums.toadworld.com/t/date-function-getting-different-results-on-different-desktop-tdas/6941/4 "2011-10-28T08:51:43Z")

</div>

Thanks very much for the quick response and information. So far everything appears to be the same. We are pulling the support bundles to evaluate them and will forward if we can’t find the issue. It appears to be the client setup because Toad for Oracle on the pc runs the datepart as expected it is the TDA app that presents different date values when the same query is run.

---

<div class="post-metadata">

**Author:** ![Debbie\_Peabody](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/debbie_peabody/32/18_2.png) [@Debbie\_Peabody](https://forums.toadworld.com/u/Debbie_Peabody)\
**Post date:** [October 28, 2011, 6:05pm UTC](https://forums.toadworld.com/t/date-function-getting-different-results-on-different-desktop-tdas/6941/5 "2011-10-28T18:05:09Z")

</div>

Perhaps the two applications are using different Oracle Clients? Or TDA is using an Oracle ODBC connection or Direct Connection?

Debbie
