The $formattedBeginDate should derive from $beginDate, not $endDate (duh...

Minor fix to one of the contrib scripts that I wrote.  Thanks in advance for merging!