Skip to content

Instantly share code, notes, and snippets.

View pemo11's full-sized avatar
🏠
Working from home

Peter pemo11

🏠
Working from home
View GitHub Profile
@pemo11
pemo11 / DateCompare.ps1
Created March 2, 2017 08:31
Compares two DateTime values with Poweshell based on diferent cultures
<#
.Synopsis
Datumsvergleich
#>
function Compare-Date
{
param([Parameter(Mandatory=$true)][String]$Date1,
[CultureInfo]$CultureDate1 = (Get-Culture),
[Parameter(Mandatory=$true)][String]$Date2,