All Tags »
DateTime »
Hey! »
PowerShell
Sorry, but there are no more tags available to filter with.
-
How Can I Separate The Month From the Year in a Date String Like 122007?
[datetime]::ParseExact(122007,'Myyyy',$null) | ft Month,Year
You can see you can use ParseExact to convert a custom format to d dateTime OBject from there it is simple of course
PS> [datetime]::ParseExact(122007,'Myyyy',$null)
zaterdag 1 december 2007 ...