当前位置:网站首页>关于C#使用DateTime数据的细节
关于C#使用DateTime数据的细节
2022-08-02 13:41:00 【小庄梦蝶】
开发工具:Visual Studio2015
事件:由于sql根据时间查询范围从某张表得出记录数为83行,但是程序里面却是61行
排错:使用Visual Studio2015打断点查看DateTime里面包含日期和时间,这与sql的查询条件冲突,得进行修改得到日期,假设原来的DateTime 为a,那么得到日期应该这样写 var a=new DateTime(a.Year,a.month,a.day);
现象:还是用断点形式来观察,发现里面TimeOfDay还有数据,原先的a中也是(看到这种情况很闷,差点怀疑人生),但是结果得出来的数据行数83(正确的),结果怪异还是记录一下
边栏推荐
- 【ONE·Data || 排序入门】
- Image retrieval method based on deep learning!
- How to do short video food from the media?5 steps to teach you to get started quickly
- [typescript] Use the RangePicker component in antd to implement time limit the previous year (365 days) of the current time
- SQL函数 $TSQL_NEWID
- This binding to detailed answers
- Get out of the machine learning world forever!
- 自动生成代码器推荐-code-gen
- C语言提高篇(三)
- RestTemplate 使用:设置请求头、请求体
猜你喜欢
随机推荐
基于深度学习的图像检索方法!
短视频美食自媒体怎么做?5步教你快速上手
How to connect DBeaver TDengine?
软件测试和硬件测试的区别及概念
自动生成代码器推荐-code-gen
Do you know Dijkstra of graph theory?
C语言提高篇(三)
二进制中1的个数
WiFi Association&Omnipeek抓包分析
嵌入式系统驱动初级【2】——字符设备驱动基础上_基础框架
Flashback Technology of Oracle Database
GTK:Gdk-CRITICAL **: IA__gdk_draw_pixbuf: assertion ‘GDK_IS_DRAWABLE (drawable)‘ failed
你真的懂单例模式么
【typescript】使用antd中RangePicker组件实现时间限制 当前时间的前一年(365天)
读《IDEO,设计改变一切》有感
【C语言】手撕循环结构 ——do...while语句及循环练习题(1)
Mysql视图
供应磷脂-聚乙二醇-羧基,DSPE-PEG-COOH,DSPE-PEG-Acid,MW:5000
高效代码静态测试工具Klocwork 2022.2——Portal全新升级、支持RLM
WPF效果第一百九十三篇之登录实现









