日期时间下拉列表选择 [英] Datetime dropdownlists selection

查看:97
本文介绍了日期时间下拉列表选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用sql server db和visual studio2010 asp.net c#



i有一个页面插入日期作为开始日期,结束日期



开始日期插入如下



年作为下拉列表

月份为下拉列表

日下拉列表

小时作为下拉列表

分钟作为下拉列表

AM或PM作为上午或下午下拉列表



一旦我完成了我的选择它必须插入数据库表字段作为日期时间像(2017-07-07-11-30-am ...这代表开始-date)



和结束日期相同



这个想法不是使用日历来选择日期时间我想将日期时间分为年,月,日,小时,分钟,上午或下午的下拉列表选择



i希望你有我的想法感谢帮助



我尝试了什么:



朋友日历没有帮助

i am working on sql server db and visual studio2010 asp.net c#

i have a page that insert date as start-date ,end-date

the start-date get inserted as follow

year as dropdownlist
month as dropdownlist
day as dropdownlist
hour as dropdownlist
minute as dropdownlist
AM OR PM as am or pm dropdownlist

once i finished my selection it must got inserted into database table field as datetime like(2017-07-07-11-30-am ...this represent start-date)

and the end-date is same

the idea is instead of using calendar to choose datetime i want to separate datetime as year,month,day,hour,minute,am or pm in dropdownlists selection

i hope you got my idea thank for help

What I have tried:

friends calendar is not helpful

推荐答案

参考这个并完成其余的参数

从ASP.Net中的DropDownList中选择日,月和年日期 [ ^ ]
refer this and complete the rest of parameters
Select Day, Month and Year Date from DropDownList in ASP.Net[^]


这篇关于日期时间下拉列表选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆