H
Harshel Mike

Posted on 4th March 2024|168 views

0
votes

Powershell Convert String To Date

How to Convert a String to Date Variable in Powershell?

Answers
P
James ROBERT

Posted on 4th March 2024

In Powershell, there are many ways for converting a String to a Date Variable one way is typecasting, through the parsing of Date Time.

 Syntax:

[DateTime]:: ParseExact(‘16/05/2019’ , ‘MM/dd/YYYY’ , $null)


 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos