IsTradingDayDefined()
<< Click to Display Table of Contents >> IsTradingDayDefined() |
Indicates a trading day is defined for a specific date.
A bool value when true indicates that the date passed in as an argument is defined as a full or partial trading day in the configured Trading Hours template; otherwise false. Also returns false if the specified date is marked as a full-day exchange holiday.
date |
The DateTime value representing the date to check |
<SessionIterator>.IsTradingDayDefined(DateTime time);
DateTime thanksGivingDay = new DateTime(2017, 11, 23); |