2 using System.Windows.Forms;
8 public static string StartDate =
"";
9 public static string StopDate =
"";
13 InitializeComponent();
16 private void cancelBtn_Click(
object sender, EventArgs e)
24 private void SetDate()
26 StartDate = StartDateObj.Value.ToString(
" MM/dd/yyyy");
27 StopDate = StopDateObj.Value.ToString(
"MM/dd/yyyy");
33 private void CheckDate()
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");
54 private void submitBtn_Click(
object sender, EventArgs e)