标签云

微信群

扫码加入我们

WeChat QR Code

I need to get the first and last day of a month in the format YYYY-MM-DD given only the month and year. Is there a good, easy way to do this?


I feel kind of stupid for asking for the first day of a month....:\

2019年05月27日07分52秒

what is "1" after $month?

2019年05月27日07分52秒

didn't realize you could make such a brillant solution just by adding "t". Clean and simple.

2019年05月27日07分52秒