Skip to content

Instantly share code, notes, and snippets.

@jtuttas
Created April 26, 2013 09:32
Show Gist options
  • Save jtuttas/5466063 to your computer and use it in GitHub Desktop.
Save jtuttas/5466063 to your computer and use it in GitHub Desktop.
Geburtstage die auf einen Sonntag liegen
cls
$gebTag = New-Object System.DateTime(1968,4,11)
$today = Get-Date
$gebTag=$gebTag.AddYears($today.Year-$gebTag.Year)
for ($i=0;$i -lt 50;$i++) {
$gebTag=$gebTag.AddYears(1);
if ($gebTag.DayOfWeek -eq "Sunday") {
Write-Host ("Du hast im Jahr "+$gebTag.Year+" wieder auf einen Sonntag Geburtstag")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment