如何在asp.net中找到日期差异 [英] how to find the the date diffarance in asp.net

查看:62
本文介绍了如何在asp.net中找到日期差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我希望搜索结果在该搜索结果中执行,我希望在两个日期之间进行记录.
例如,我想知道从现在到现在有多少个条目在我们这里注册.
哪种方法对我有用.
谁能指导我.
提前感谢.

我在SQL Server Express Edition中使用asp.net 3.5.
我想要可以为我执行搜索结果的查询.
查询
我只希望记录谁在给定日期之间的范围.
从日期开始
迄今为止.

in my project i want the search result to perform in that search result i want the records between two dates.
for example i want to know how many entries are register with us from date to to date.
which method is useful for me.
can anyone guide me.
thankx in advance.

am using asp.net 3.5 with sql server express edition.
i want the query which can perform search result for me.
for query
i want only records whoes range inbetween the given dates.
from date
to date.
thankx for reply.

推荐答案

您需要更加具体;搜索方法如何实现?您是否会将日期发送回数据库?您会使用Linq吗?阿贾克斯还有其他方法吗?到目前为止,您做了什么?
You''ll need to be more specific; how is the search method implemented? Will you be sending dates back to the database? Will you use Linq? Ajax? Some other method? What have you done so far?


您可以使用最基本的SQL进行此操作.您只需使用>和<运算符以指定日期范围.

不要向自己发布答案.
You do this with the most basic SQL. You just use the > and < operators to specify a date range.

Don''t post answers to yourself.


这篇关于如何在asp.net中找到日期差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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