public void LoadDueValidation() { //Response.Write(WeekYear.GetDateDue(EmployeeJournal.GetWeekCode(Convert.ToInt16(Request.QueryString["JournalCode"]))).AddHours(9).ToString()); //Response.Write("<br> " + DateTime.Now.ToString()); //Response.Write(Convert.ToDateTime("11/12/2015 4:50:17 PM").ToString()); if (WeekYear.GetDateDue(EmployeeJournal.GetWeekCode(Convert.ToInt16(Request.QueryString["JournalCode"]))).AddHours(9) < DateTime.Now) //if (Convert.ToDateTime("11/12/2015 4:57:00 PM") < DateTime.Now) { if (JournalExceptions.CountIfExist(EmployeeJournal.GetWeekCode(Convert.ToInt16(Request.QueryString["JournalCode"])), Request.Cookies["Speedo"]["UserName"].ToString()) > 0) { btnDraft.Enabled = true; btnFinalize.Enabled = true; btnPreview.Enabled = true; } else { btnDraft.Enabled = false; btnFinalize.Enabled = false; btnPreview.Enabled = false; } } }