I wrote this code to copy files, what I need is a way to make it copy just the files created this month or created last 31 days?
$a = "L:\EndMonths\"
$a +=get-date -format MMMM
xcopy "L:\28*.zip" $a /I
xcopy "L:\29*.zip" $a /I
xcopy "L:\30*.zip" $a /I
xcopy "L:\31*.zip" $a /I