Hi.
I want to build a sub in a shell-script that can give me the last day of the month (or the number of days in a month), i.e. if I pass in "$year=2001" and "$month=11", the sub should return the number of days in the month November year 2001 (which should be 30). The sub should be able to handle leap-years.
Hope you guys can help out, thanks in advance.
I want to build a sub in a shell-script that can give me the last day of the month (or the number of days in a month), i.e. if I pass in "$year=2001" and "$month=11", the sub should return the number of days in the month November year 2001 (which should be 30). The sub should be able to handle leap-years.
Hope you guys can help out, thanks in advance.