if ((DateDiff("d", rs["Date"], DateTime.Now) < 0 & billing_total_today_flag == false)) { billing_total_today = billing_total; billing_total_today_flag = true; } Error: if ((DateDiff("d", rs["Date"], DateTime.Now) < 0 & billing_total_today_flag == false)) Error Name: The name 'DateDiff' does not exists in current context.
//corrected code if ((Convert.ToDateTime("rs["Date"]") - DateTime.Now).Days < 0 & billing_total_today_flag == false)) { billing_total_today = billing_total; billing_total_today_flag = true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)