如何在SQL Server 2000数据库中节省时间 [英] how to save time in the sql server 2000 databse

查看:79
本文介绍了如何在SQL Server 2000数据库中节省时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个文本框
1.从时间
2.到时间

我如何验证这些文本框,以便用户以上午10:30或下午的方式输入时间

以及如何将其保存到sql Server 2000数据库中(该数据库在一个表中接受一个字段被声明为时间戳数据类型)


提前thanxz !!!!!!!!! :doh:


我只说时间!!!!!!!!!!!!!!!!

i have two text boxes
1.from time
2. to time

how i validate these text boxes so that user enter time in 10:30 am or pm manner

and how to save it into sql server 2000 database (which accept one field to be declared as timestamp data type in one table)


thanxz in advance!!!!!!!!! :doh:


i m saying about time only !!!!!!!!!!!!!!!!

推荐答案

使用正则表达式验证器..:)

更多详细信息:此处 [
Use a regular expression validator.. :)

More details: Here[^]


我认为这可能对您很方便:

http://javascript.internet.com/forms/val-time.html [ ^ ]

请参阅正则表达式.
This might come handy to you I think:

http://javascript.internet.com/forms/val-time.html[^]

See the Regular expression.


使用日历控件输入日期时间.
Use a Calendar control for entering date time.


这篇关于如何在SQL Server 2000数据库中节省时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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