摘要: 需求比较两个DateTime类型的年月 类似:只能是当月或当月之前的数据(只能是1号) 思路:将两个需要对比的日期 全部转换成月份 再做比较 如:DateTime dt_Now=new DateTime.Now(); string dt_other="2020-03-02"; DateTime ot 阅读全文
posted @ 2021-03-12 15:40 火星撞鸡蛋 阅读(1580) 评论(0) 推荐(0) 编辑