[#BloombergLP-bdlt-Timetable-setValidRange] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Timetable.adoc[Timetable]::setValidRange :relfileprefix: ../../../ :mrdocs: Set the valid range of this timetable to `[firstDate .. lastDate]`. == Synopsis Declared in `<bdlt_timetable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setValidRange( xref:BloombergLP/bdlt/Date.adoc[Date] const& firstDate, xref:BloombergLP/bdlt/Date.adoc[Date] const& lastDate); ---- == Description Set the range of this timetable using the specified `firstDate` and `lastDate` as, respectively, the first date and the last date of the timetable. Any transitions, and associated transition codes, that are outside of the new range are removed. The removal of a transition invalidates all iterators. The behavior is undefined unless `firstDate <= lastDate`. == Parameters [cols="1,4"] |=== | Name| Description | *firstDate* | first date of the valid range | *lastDate* | last date of the valid range |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#