PoshCode Logo PowerShell Code Repository

Get Time Between Dates by dfdsdf 2 weeks ago (modification of post by Dan In Philly view diff)
diff | embed code: <script type="text/javascript" src="http://PoshCode.org/embed/6889"></script>download | new post

Provide a begin and end time frame (mm dd yyyy) and this will calculate the years, months and days between the two dates. This is NOT 100% accurate but it was close enough for what I was trying to do. Someone with better math skills should be able to improve the accuracy.

  1. Get-AppxProvisionedPackage -Online | Where {$_.PackageName -notlike *store* -and $_.PackageName -notlike *calc*} | Remove-AppxProvisionedPackage -Online
  2. Get-AppxPackage | Where {$_.PackageFullName -notlike *store* -and $_.PackageFullName -notlike *calc*} | Remove-AppxPackage

Submit a correction or amendment below (
click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:


Remember me