得到正确的日期 [英] get the correct date

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

问题描述

我如何获取星期五的日期在一个月的最后一个星期一之前?
例如,假设在5月,上周一的日期是28日.
之前的星期五是25日.请问该如何计算?
感谢

How do I get the date of the friday before the last monday of the month?
For example, say in May, the date of last monday is 28th.
The friday before that is 25th. How is this calculated please?
Thanks

推荐答案

看看这个:
Have a look at this: DateTime extensions for to make some simple tasks a little more readable[^] - it should cover what you want, with a little tweaking.


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

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