just substract two dates
TimeSpan diff = date2.Subtract(date1);
if(diff.Hours > 30)
{
//do action;
}
1
solved C# compare datetime with current datetime [closed]
just substract two dates
TimeSpan diff = date2.Subtract(date1);
if(diff.Hours > 30)
{
//do action;
}
1
solved C# compare datetime with current datetime [closed]