logo-MindMajix
H
Harshel Mike

Posted on 16th June 2024|182 views

0
votes

Powershell Convert String To Date

How to Convert a String to Date Variable in Powershell?

1 answers
Answers
P
James ROBERT

Posted on 16th June 2024| views

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
Name
Course *
Email *
Phone Number