string date = "'" + ddlyear.SelectedItem.Text.ToString().PadLeft(2, '0') + "'-''" + ddlmonth.SelectedItem.Text.ToString().PadLeft(2, '0') + "'-'" + ddlday.SelectedItem.Text.ToString().PadLeft(2, '0') + "'";
1989-06-30
<asp:CalendarExtender></asp:CalendarExtender>
string date="1989'-'06'-'30"; string final=date.Replace("'","");
string s = DropDownList1.SelectedItem.Text; DateTime d =Convert.ToDateTime(s); string f = d.ToString("yyyy-MM-dd")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)