To enter the date using three dropdown lists
-
hi, i like to enter the date using three drop down lists i.e in the first dropdownlist it must show date 1 to 31 In second drop down list it must show names of the months like jan, feb,mar,apr..... In third drop down list it must show the years 1.e from 1947 to current year (2009). And one more is in my databse i like to save my date in the format of 1/01/2000. how i can change my string value jan,feb to int value i.e 01,02... in the database. Plz help me by posting the code...its very urgent.... Thanx in advance
-
hi, i like to enter the date using three drop down lists i.e in the first dropdownlist it must show date 1 to 31 In second drop down list it must show names of the months like jan, feb,mar,apr..... In third drop down list it must show the years 1.e from 1947 to current year (2009). And one more is in my databse i like to save my date in the format of 1/01/2000. how i can change my string value jan,feb to int value i.e 01,02... in the database. Plz help me by posting the code...its very urgent.... Thanx in advance
Dropdown List containing two property one is "Text" and other is "Value". Now Text field you can use month name and Value field you can use as number value.
<asp:DropDownList ID="t" runat="server">
<asp:ListItem Text="Jan" Value="01"></asp:ListItem>
</asp:DropDownList>Parwej Ahamad