2 using System.Windows.Forms;
35 DateTime startdate = Convert.ToDateTime(
StartDate);
36 DateTime enddate = Convert.ToDateTime(
StopDate);
37 DateTime today = DateTime.Today;
38 if ((startdate <= today) && (today <= enddate))
46 MessageBox.Show(
"Schedule date invalid");
void CheckDate()
validate selected dates
System.Windows.Forms.DateTimePicker StopDateObj
System.Windows.Forms.DateTimePicker StartDateObj
void InitializeComponent()
Required method for Designer support - do not modify the contents of this method with the code editor...
void SetDate()
Set scheduler dates
void submitBtn_Click(object sender, EventArgs e)
void cancelBtn_Click(object sender, EventArgs e)