My SharePoint list contains 4 columns and the first is a date column. The data in the list is sorted ascending. What I would like is to get the value of the first column af the last row of the list. I have this but doesn't give me the last date:
Write-Host "my schedule: " (Get-PnPListItem -List "my schedule" | Select-Object -Last 1)["Datum"].ToString("dd.MM.yyyy")
When I go to the end of my list "My schedule" I see the last date is 31-03-2019 but powershell gives me 30-03-2019 !!!
What do I do wrong?