[#BloombergLP-bdlt-CalendarUtil-shiftIfValid-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/CalendarUtil.adoc[CalendarUtil]::shiftIfValid :relfileprefix: ../../../ :mrdocs: Load, into the specified `result`, the date of the business day that is derived from the specified `original` date based on the specified `calendar` according to the specified date‐shifting `convention`. Return 0 on success, and a non‐zero value, without modifying `*result`, if a valid business date cannot be found according to the `convention` within the valid range of `calendar`. == Synopsis Declared in `<bdlt_calendarutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int shiftIfValid( xref:BloombergLP/bdlt/Date.adoc[bdlt::Date]* result, xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& original, xref:BloombergLP/bdlt/Calendar.adoc[bdlt::Calendar] const& calendar, xref:BloombergLP/bdlt/CalendarUtil/ShiftConvention.adoc[ShiftConvention] convention); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#