public string CustomerSubmission { get { return _customerSubmission; } set { try { DateTime CustomerSubmission = Convert.ToDateTime(UserUtil.ConvertDate(value.ToString().Trim())); if (value.ToString().Trim() == "") { throw new Exception(Message.Blank("Customer Submission Date")); } else if (!UserUtil.IsDateinDDMMYYYYFormat(value)) { throw new Exception(Message.InvalidDate("Customer SubmissionDate")); } else if (CustomerSubmission > DateTime.Now) { throw new Exception(Message.DateShouldBeLessThan("Customer Submission Date")); } _customerSubmission = UserUtil.ConvertDate(value.ToString().Trim()); } catch (Exception ex) { throw; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)