Click here to Skip to main content
16,011,849 members

Comments by kingcoder0110 (Top 4 by date)

kingcoder0110 24-Nov-12 3:09am View    
Thank you very much for trying to help me to solve my problem. You said it that "The actual Problem is the string 30-07-2012". But didnt you check my codes where I have changed it back from string to date? Please check following code

Private Sub cmbisrbdt_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbisrbdt.SelectedIndexChanged
Dim bdsv As String = cmbisrbdt.SelectedItem
Dim bdDate As Date
bdDate = DateTime.Parse(bdsv, Globalization.CultureInfo.CreateSpecificCulture("en-CA"))
TextBox1.Text = bdDate

End Sub

Private Sub cmbisredt_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbisredt.SelectedIndexChanged
Dim edsv As String = cmbisredt.SelectedItem
Dim edDate As Date
edDate = DateTime.Parse(edsv, Globalization.CultureInfo.CreateSpecificCulture("en-CA"))
TextBox2.Text = edDate
End Sub

First of all I have collected string date (DD-MM-YYYY) from combo boxes & converted it back as date (MM-DD-YYYY) & got that converted result in text boxes & used those text boxes as parameter. So what does it make problem?
kingcoder0110 6-Oct-12 13:59pm View    
Thanks a lot. It works.
kingcoder0110 6-Oct-12 12:13pm View    
Can you explain it to me please?
kingcoder0110 6-Oct-12 12:13pm View    
Would you please explain it to me? I didnt understand your answer properly.