It is very similar to Get the first and last date of next month in MySQL, but I want to Get the first and last working day date of some month in MySQL. Here, working day means simply Monday ~ Friday, or DAYOFWEEK(date) >= 2 and <= 6. Let's not think about holiday.
For example (I chose Feb as it should be most complicated due to leap)
2014-02 -> 2014-02-03 (Mon) ~ 2014-02-28 (Fri)
2015-02 -> 2015-02-02 (Mon) ~ 2015-02-27 (Fri)
2016-02 -> 2016-02-01 (Mon) ~ 2016-02-29 (Mon)