I am working with data table and using hijri dates when trying to filter dates like so:
dayDutyTableFilter.DefaultView.RowFilter = "EmployeeID = '" + pRow["PersonID"].ToString() + "' And DayDutyDate >= '" + firstDayMonth
+ "' And DayDutyDate <= '" + lastDayMonth + "'";
I got the following error:
Specified time is not supported in this calendar. It should be between 04/30/1900 00:00:00 (Gregorian date) and 11/16/2077 23:59:59 (Gregorian date), inclusive.