Perhaps you like to correct the example and description for the "-Date"-Parameter:
the script expects the format YYYY-MM-DD: "... if ($date) { Date should be in YYYY-MM-DD format..." (from inside the script) and throws here an error for "-Date 31-01-2012":
PS C:tmp> .ActiveSyncReport.ps1 ... -Date 01-31-2012 ....
Get-Date : Der Parameter "Date" kann nicht gebunden werden. Der Wert "01-31-2012" kann nicht in den Typ "System.DateTime" konvertiert werden. Fehler: "Die Zeichenfolge wurde nicht als gültiges DateTime erkannt."
Bei C:tmpActiveSyncReport.ps1:697 Zeichen:28
+ $filterdate = (Get-Date <<<< $date -format yyMMdd)
+ CategoryInfo : InvalidArgument: (:) [Get-Date], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.GetDateCommand
"-Date 2012-01-31 ...." works.