Contents

Need to get the number representing the month for a specified date (e.g., 1 for January, 2 for February, etc.)? Then just use the Get-Date Cmdlet, the –f parameter and the MM .NET formatting command. This command returns a numeric value representing the month of the year for the current date: $a = get-date … ................
................