Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (24 loc) · 628 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 628 Bytes

moment-fn-weekday

A Moment.js plugin for Weekday functions.

Usage

getWeekdayCountInMonth([weekday])

取得在這個月份中有幾個星期 N

moment().getWeekdayCountInMonth();

or

moment().getWeekdayCountInMonth(5);

getWeekdayWeekInMonth([date])

取得該日期在當月中是第幾週星期 N

moment().getWeekdayWeekInMonth();

or

moment().getWeekdayWeekInMonth(moment('2016-10-10'));

License

Copyright © 2015 Aren Chen.

The "moment-fn-weekday" Moment.js plugin is licensed under the Apache License, Version 2.0.