string example = "2/6/09";
char[] delimiter = {'/'};
string[] dateInfo = example.Split(delimiter);
private System.Windows.Forms.DateTimePicker myDateTimePicker;
myDateTimePicker.Value = new DateTime(int.Parse(dateInfo[2]) + 2000, int.Parse(dateInfo[0]), int.Parse(dateInfo[1]));
No comments:
Post a Comment