Acclaimed Contributor Acclaimed Contributor
Re: How to get 5th Saturday?
Well, I wouldn't write no code for the special case of the 5th Saturday but some years back I did write some code for the general case. (I think the PC guys needed the 2nd Sunday for something or other and on account of it being Windows I wrote it in Perl.)

This should work.

dayofmonth.pl -w 6 -n 5
without a year argument the current year is assummed.
dayofmonth.pl -w 6 -n 5 2012
will work for 2012.

Invoke as dayofmonth.pl -u for full usage.
If it ain't broke, I can fix that.