79446994

Date: 2025-02-18 02:46:22
Score: 2.5
Natty:
Report link

This sets today's date in the format of dd,MM,yyyy

$Today = (Get-Date).ToString("dd,MM,yyyy")

This gets the number of days in the current month

$DaysNumber = [DateTime]::DaysInMonth($Today.Split(",")[2],$Today.Split(",")[1])

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Dave