I would separate the portions of the date using sql. You can check book on line for string functions such as substring(), mid() .. etc.
Question: Are you populating the drop down lists for data entry? If so, why are you pulling data from the database? Are you giving the users only certain dates they can enter? If there is no restriction, then manually fill the ddl's collection with the values. I guess I am just confused on what exactly you want to do. Also, if you want to let them enter any date, I would use the calendar control. You can restrict the dates they can enter with that control also, so that they can enter a date too far in the past or future.
|