public override DateTime GetFirstVisibleDate(DateTime editDate)
{
try
{
var firstMonthDate = GetFarsiFirstMonthDate(editDate);
var timeSpan = TimeSpan.FromDays(-GetFirstDayOffset(firstMonthDate));
if (firstMonthDate.Ticks + timeSpan.Ticks < 0L)
return PersianDate.MinValue;
return firstMonthDate + timeSpan;
}
catch
{
return MinValue;
}
}