Created
August 12, 2020 09:06
-
-
Save OlafD/6b56f86e5b1c858e00b33418b1170e36 to your computer and use it in GitHub Desktop.
For using a datetime value in a SharePoint Caml Query, the value needs to be fomatted in the right way. The next two lines will help on this, when it is needed in PowerShell, should also help for C# code.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$date = Get-Date | |
$zulu = $date.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment