PowerTip: Use PowerShell to Create a Date String
Summary: Use Windows PowerShell to create a date string that has a month, day, and year.
How can I use Windows PowerShell to create a string that represents the date with the month, day, and year?
Feed a pattern of ‘M/d/y’ to the ToString method from Get-Date:
PS C:\> (get-date).ToString(‘M/d/y’)