# setAlert dates

**URL:** <https://discussions.flightaware.com/t/setalert-dates/84665>\
**Category:** AeroAPI\
**Created:** [September 19, 2022, 6:18pm UTC](https://discussions.flightaware.com/t/setalert-dates/84665 "2022-09-19T18:18:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmirGhorbani](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/amirghorbani/32/125179_2.png) [@AmirGhorbani](https://discussions.flightaware.com/u/AmirGhorbani)\
**Post date:** [September 19, 2022, 6:18pm UTC](https://discussions.flightaware.com/t/setalert-dates/84665/1 "2022-09-19T18:18:29Z")

</div>

Regarding date\_start and date\_end when calling setAlert:  
Is this the date range on which we will receive alerts or the date range to filter flights on?

For example there is a flight UAL123 that flies the same route every day. If I have an alert set not using the faFlightId but the ident and date\_start/date\_end set to today, would that give me alerts for only the flight that takes off today (ie flight where ident is UAL123 and scheduled\_departure is within date range) or would it also potentially send me the ‘filed’ alert for UAL123 that flies 2 days from now (ie any alerts generated in date range for flights with ident UAL123)?

---

<div class="post-metadata">

**Author:** ![bovineone](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bovineone/32/117631_2.png) [@bovineone](https://discussions.flightaware.com/u/bovineone)\
**Post date:** [September 19, 2022, 9:47pm UTC](https://discussions.flightaware.com/t/setalert-dates/84665/2 "2022-09-19T21:47:10Z")

</div>

The date\_start/date\_end for alerts refers to the scheduled departure time of the flight, evaluated as local time zone of the departure airport.
