Created
February 7, 2017 09:34
-
-
Save Jackbennett/41cab72229155757db313ee6002d0a08 to your computer and use it in GitHub Desktop.
Convert datetime error
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
$ get-date -OutVariable sd "6/2/2017 03:58" | |
06 February 2017 03:58:00 | |
$ $sd | gm | |
TypeName: System.DateTime | |
Name MemberType Definition | |
---- ---------- ---------- | |
Add Method datetime Add(timespan value) | |
.... | |
$ Get-MessageTrackingLog -Start $sd | |
Cannot process argument transformation on parameter 'Start'. Cannot convert the "System.Collections.ArrayList" value of type "System.Collections.ArrayList" to type "System.DateTime". | |
+ CategoryInfo : InvalidData: (:) [Get-MessageTrackingLog], ParameterBindin...mationException | |
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-MessageTrackingLog | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment