私のコードの何が問題になっていますか?
string birthdate = ((DataRowView)comboBox1.SelectedItem).Row["birthdate"].ToString(); //pulled the data into the database ()
string[] split = birthdate.Split('/'); //split the Date
それらをテキストボックスに入れたいので、これを行うことを考えました。
textbox1.Text = split[0]; //correct, gets the 1st word the (Day)
textbox2.Text = split[1]; //incorrect, outofrange exception (Month)
textbox3.Text = split[2]; //incorrect, outforange exception (Year)
注:形式は、日/月(単語)/年==> 1 /January/2012です。
誰かが私がその値を取得してテキストボックスに1つずつ入れるのを手伝ってもらえますか?