private bool getDeadlineStatus(string deadlineName) { try { using (conferenceadminContext context = new conferenceadminContext()) { WebManager webManager = new WebManager(); string deadline = webManager.getInterfaceElement(deadlineName).content; var Day = Convert.ToInt32(deadline.Split('/')[1]); var Month = Convert.ToInt32(deadline.Split('/')[0]); var Year = Convert.ToInt32(deadline.Split('/')[2]); DateTime submissionDeadline = new DateTime(Year, Month, Day); return (DateTime.Compare(submissionDeadline, DateTime.Now.Date) >= 0); } } catch (Exception ex) { Console.Write("PaymentManager.getAmountInDeadline error " + ex); return false; } }