The Default date value of SQL server sometimes we need to check in C# your date from sql database value = = DateTime.MinValue
if (Model.EmployeeInformationList[i].OfficeLeaveDate!=DateTime.MinValue)
{
// Do something
}
Comments
Post a Comment