# Reporting out By Day

**URL:** <https://forum.inductiveautomation.com/t/reporting-out-by-day/10852>\
**Category:** 3rd Party Modules\
**Created:** [December 1, 2015, 6:53pm UTC](https://forum.inductiveautomation.com/t/reporting-out-by-day/10852 "2015-12-01T18:53:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmoniz](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jmoniz](https://forum.inductiveautomation.com/u/jmoniz)\
**Post date:** [December 1, 2015, 6:53pm UTC](https://forum.inductiveautomation.com/t/reporting-out-by-day/10852/1 "2015-12-01T18:53:28Z")

</div>

If I report out by day. Midnight to Midnight.

We run 3 shifts  
Midnights 11PM to 7AM Shift 1  
Days 7AM to 3pm Shift 2  
Afternoons 3PM to 11PM Shift 3

When we run a report for a day. we get the midnight shift starting on the next day. How do we run a daily report to get the previous midnight shift instead.

---

<div class="post-metadata">

**Author:** ![Pete.Low](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pete.Low](https://forum.inductiveautomation.com/u/Pete.Low)\
**Post date:** [December 1, 2015, 8:12pm UTC](https://forum.inductiveautomation.com/t/reporting-out-by-day/10852/2 "2015-12-01T20:12:54Z")

</div>

Hi JP,  
If you are using the analysis selector it defaults to a 24 hour period from midnight to midnight. So it will not see the previous days shift 3. There is a property on the selector “Use Start and End Time” that will use the actual times you enter. You will need to enter the start time as 11PM from the previous day and end time to 10:59:59PM of the current day. That should capture the shifts that you are interested in.

---

<div class="post-metadata">

**Author:** ![jmoniz](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jmoniz](https://forum.inductiveautomation.com/u/jmoniz)\
**Post date:** [December 1, 2015, 8:15pm UTC](https://forum.inductiveautomation.com/t/reporting-out-by-day/10852/3 "2015-12-01T20:15:30Z")

</div>

Pete,

What about from the controllers or via script?

---

<div class="post-metadata">

**Author:** ![Pete.Low](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pete.Low](https://forum.inductiveautomation.com/u/Pete.Low)\
**Post date:** [December 2, 2015, 3:48pm UTC](https://forum.inductiveautomation.com/t/reporting-out-by-day/10852/4 "2015-12-02T15:48:21Z")

</div>

An analysis controller always uses the entered time.  
Scripting also takes the date parameters as you enter them
