获取一个月内的星期六数量 [英] Get number of saturday in a month

查看:138
本文介绍了获取一个月内的星期六数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,



我需要一个函数来计算一个月内的星期六数



以及日期列表。



谢谢

Dear All,

I need a function which will calculate number of saturday in a month

along with list of date.

Thank you

推荐答案

您好Asutosha



从谷歌获取一个函数,计算出该月的第一天,



喜欢: Fn( 2013年2月) - > 星期五

然后获取当月的天数(再次借助谷歌叔叔的帮助)

喜欢: Gn( 2013年2月) - > 28



从这里你只计算那个月的星期六。(br / >




干杯,

Edo
Hi Asutosha

Get a function from google that figures out the first day of the month,

like: Fn(Feb 2013) --> "Friday"
Then get the number of days in that month (again with help from uncle google)
like: Gn(Feb 2013) --> "28"

And from here you just calculate how many Saturdays fit into that month.


Cheers,
Edo


[ ^ ]



给它一个机会,它并不难。如果您仍然无法做到,请告诉我们您的所作所为,我们将非常乐意为您提供帮助。
What have you tried?[^]

Give it a shot, it isn''t that hard. If you still cannot do it, show us what you did and we will be very happy to help you.


这篇关于获取一个月内的星期六数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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