check sql default date value in C#

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  
               }  


Popular posts from this blog

WPF Crystal Report Viewer Using SAP

ASP.NET MVC razor SAP Crystal report