Is seems the -DateTimeFormat is no longer valid with New-UDTable. In my V2 dashboard I have a function that returns data from a SQL query and the date is a SQL datetime I then reformat the datetime to a more readable format of Oct 25, 2020 5:00 AM. How is this done with the new New-UDTable.
Also I want to control the pages sizing using -PageSize and -PageSizeOptions but when I add them to the New-UDTable definition I get errors in the log and the page is blank
A parameter cannot be found that matches parameter name ‘PageSize’.
A parameter cannot be found that matches parameter name ‘PageSizeOptions’.
$Session:TotalPages = $Session:LastData.length
Code I am using
New-UDTable -Id ‘LastPatchData’ -Data $Session:LastData -Columns $Session:Columns -Sort -Filter -Search -Export -PageSize 20 -PageSizeOptions @(10, 20, 50)