Hi,
My current code looks like this:
DateTime dateBegin = DateTime.ParseExact(begin, "MM/dd/yyyy", null);
DateTime dateEnd = DateTime.ParseExact(end, "MM/dd/yyyy", null);
But it throws an exception whenever the date in "end" is different. I get the dates from a DateTimePicker control, thus the date may look like "1/12/2010" and then it'll throw the exception. How do I avoid this?
Thanks.