佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 800|回复: 4

如何将几个DropDownList value combine成一个(日期)?

[复制链接]
elfinxp 该用户已被删除
发表于 27-7-2006 10:30 AM | 显示全部楼层 |阅读模式
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.
回复

使用道具 举报


ADVERTISEMENT

发表于 27-7-2006 12:26 PM | 显示全部楼层
首先, 你用什么语言?
回复

使用道具 举报

elfinxp 该用户已被删除
 楼主| 发表于 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)
回复

使用道具 举报

elfinxp 该用户已被删除
 楼主| 发表于 27-7-2006 03:31 PM | 显示全部楼层
谢啦!goatstudio
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 12-8-2025 04:46 PM , Processed in 0.134461 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表