Number of days in current month: date -d "$(date +%Y-%m)-01 -1 day +1 month" +%d Number of days in any year and month: date -d "$YEAR-$MONTH-01 -1 day +1 month" +%d
No comments:
Post a Comment