[#BloombergLP-bdlt-Calendar-setValidRange] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Calendar.adoc[Calendar]::setValidRange :relfileprefix: ../../../ :mrdocs: Set the range of this calendar using the specified `firstDate` and `lastDate` as, respectively, the first date and the last date of the calendar. Any holiday that is outside the new range and its holiday codes are removed. See {Iterator Invalidation} for information regarding which iterators are affected by the use of this method. The behavior is undefined unless `firstDate <= lastDate`. == Synopsis Declared in `<bdlt_calendar.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); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#