hello,
with the date command on a linux I can obtain last day of the current month:
$ date +%e -d "-$(date +%d) day"
30
How to modify the command to get with the command any month's last day?
I tried this but it return wrong value...
$ date +%e -d "02/02/2016 -$(date +%d -d "02/02/2016") day"
31
with the date command on a linux I can obtain last day of the current month:
$ date +%e -d "-$(date +%d) day"
30
How to modify the command to get with the command any month's last day?
I tried this but it return wrong value...
$ date +%e -d "02/02/2016 -$(date +%d -d "02/02/2016") day"
31