Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Ok, convert this!

$
0
0

Poshoholic,

After I asked the question I started playing around with string manipulation.  This is what I ran:  $date = $date.Substring(0,16)

That produced the following string:  Jul 15 16:08:30

It’s better.  I tried what you detailed.  It seems to accomplish the same as mine, yes?

I would still like to convert Jul 15 16:08:30 to a valid date/time, but I’m not sure I can.  The format is not correct for get-date to convert it.


Viewing all articles
Browse latest Browse all 13067

Trending Articles