- If you try to retrieve a date value from a WPF calendar object (e.g. calendar.Date; calendar.Date.Month; calendar.Date.Year) before performing an operation on it, OpenText Functional Testing for Developers returns an exception of type: InvalidOperationException. Therefore, make sure to precede the retrieve value step with a step that performs an operation on the calendar, such as using to set the date on the calendar to the current date.
C# Syntax
DateTime Date {get;}