Thanks LucD. Its fixed the issue, but now its throws different error
PowerCLI C:\temp> .\RVTools_Export.ps1
Get-Date : Cannot bind parameter 'Date'. Cannot convert value "28/09/2015" to
type "System.DateTime". Error: "String was not recognized as a valid DateTime."
At C:\temp\RVTools_Export.ps1:42 char:57
+ if ((((Get-date).AddDays(-$OldFileDays))-(Get-Date($itemDate))).Days
-gt 0 ...
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-Date], ParameterBindin
gException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerSh
ell.Commands.GetDateCommand
thanks
vm2014