查看: 800|回复: 4
|
如何将几个DropDownList value combine成一个(日期)?
[复制链接]
|
|
I have 3 DropDownLists on the page : first for Day, second for Month, and the last for Year.
How can I let the user to choose the data and insert it to "expiryDate" column in the database. |
|
|
|
|
|
|
|
发表于 27-7-2006 12:26 PM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 27-7-2006 01:39 PM
|
显示全部楼层
不好意思,我用的是vb.net...做asp.net的网页。 |
|
|
|
|
|
|
|
发表于 27-7-2006 02:49 PM
|
显示全部楼层
原帖由 elfinxp 于 27-7-2006 01:39 PM 发表
不好意思,我用的是vb.net...做asp.net的网页。
那么... 还不简单?
DateTime mydate = DateTime.parse (Me.dropdown_month.selectedValue & "/" & Me.dropdown_day.selectedValue & "/" & Me.dropdown_year.selectedValue) |
|
|
|
|
|
|
|

楼主 |
发表于 27-7-2006 03:31 PM
|
显示全部楼层
谢啦!goatstudio  |
|
|
|
|
|
|
| |
本周最热论坛帖子
|