Author: yogaraj.p | Posted on: 4/6/2010 12:00:33 AM | Views : 286

Hi,
I have a claender control to select the date in Add/Modify screen. the format of calendar control is "dd/'MM/yyyy".
1) when i am passing to the database i supposed to convert to "MM/dd/yyyy"  (because getting error in DB side if i pass "dd/MM/yyyy") - need solution for this
2) when i converting the text box date value to datetime type (Convert.ToDateTime(txtDateofBirth.Text.Trim());)
   this is working fine in one system but not in another system. (because of system culture setting)
if i use this code then its working fine. (but i need to pass "MM/dd/yyyy")  to the DB. :(
string [] expectedFormats = { "dd/MM/yyyy", Go to the complete details ...