[英]c# compare datetime for day of month and time
I need to compare two datetime variable only for some criteria : Day of the month and time . 我仅需要针对某些条件比较两个datetime变量:月中的某天和时间。
If the day of the month and the time is equal to another datetime then the expression return true, the comparison must not keep in mind of the month and the year of the two Datetime . 如果月份中的日期和时间等于另一个datetime,则表达式返回true,则比较时必须牢记两个Datetime的月份和年份。
What's the best way to do this comparison ? 进行此比较的最佳方法是什么?
Thanks. 谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.