如何比较两个日期 [英] how to compare two date

查看:100
本文介绍了如何比较两个日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Windows应用程序在c#中比较制造日期和到期日期这两个日期.

How to compare two date that is manufacture date and expire date in c# using windows application.

推荐答案

很难阅读 http://msdn.microsoft.com/en-us/library/system.datetime. aspx [^ ]?

使用比较运算符<",>",< =,> ="和"==)比较时间.很简单,不是吗?

—SA
Was is so difficult to read MSDN help page on System.DateTime, http://msdn.microsoft.com/en-us/library/system.datetime.aspx[^]?

Compare time using comparison operators "<", ">", "<=", ">=" and "==". Simple, isn''t it?

—SA


检查以下链接以获取示例

http://www.dotnetspider.com/resources/29637-Date-Comparison-C.aspx [ ^ ]
check the following link for examples

http://www.dotnetspider.com/resources/29637-Date-Comparison-C.aspx[^]


这篇关于如何比较两个日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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