Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. # 06.‎11.‎2016 ‏‎02:00
  2. $format = "dd.‎MM.‎yyyy ‏‎HH:mm"
  3. $provider = [System.Globalization.CultureInfo]::CurrentCulture
  4. $newDate = [datetime]::ParseExact($dateCreaString,$format,$provider)
  5.  
  6. Exception when calling "ParseExact" with "3" argument(s): "The string has not been recognized as a valid DateTime. »
  7. + $newDate = [datetime]::ParseExact($dateCreaString,$format,$provid ...
  8. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9. + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
  10. + FullyQualifiedErrorId : FormatException
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement