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 ...