Days in Month

Get the number of days in a specific month.

Code

General
date -d "$year-$month-01 +1 month -1 day" +%d

Parameters

Year

Month (1-12)

Server

More Bash Snippets