Author: jfeeney | Posted on: 2/7/2010 4:00:45 PM | Views : 648

The following code is not working for me (Note FirstDayActual.Text is 2/7/2010)
MessageBox.Show(FirstDayActual.Text); MessageBox.Show(LastDayTextbox.Text); DateTime startTime; DateTime endTime; try { startTime = DateTime.ParseExact(FirstDayActual.Text, "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture); } catch (Exception ex) { MessageBox.Show(ex.Message + " - " + FirstDayActual.Text + " - " +System.Globalization.CultureInfo.CurrentCulture); startTime = DateTime.Today; } try { endTime = DateTime.ParseExact(LastDayTextbox.Text, "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture); } catch (Exception ex) { MessageBox.Show(ex.Message + " - " + LastDayTextbox.Text + " - " + System.Gl ...

Go to the complete details ...