PoshCode Archive  Artifact [7662631438]

Artifact 76626314385de602645ebe3bc431ea2e2e7e28abd54326b462e1bd5232e06428:

  • File Get-Time-Between-Dates.ps1 — part of check-in [597f1652f7] at 2018-06-10 14:22:13 on branch trunk — 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. (user: Dan In Philly size: 808)

# encoding: utf-8
# api: powershell
# title: Get Time Between Dates
# description: 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.
# version: 0.1
# author: Dan In Philly
# license: CC0
# x-poshcode-id: 6889
# x-archived: 2017-05-13T18:42:17
# x-published: 2017-05-08T04:09:00
#
#
Get-AppxProvisionedPackage -Online | Where {$_.PackageName -notlike “*store*” -and $_.PackageName -notlike “*calc*”} | Remove-AppxProvisionedPackage -Online
Get-AppxPackage | Where {$_.PackageFullName -notlike “*store*” -and $_.PackageFullName -notlike “*calc*”} | Remove-AppxPackage