Summary: Pipe a string to the Windows PowerShell Get-Date cmdlet to convert it to a DateTime object.
How can I use Windows PowerShell to convert a date that is in a string format to a DateTime object?
Create a pipeline, for example:
"11/14/2015" | get-date
0 comments