Created
April 26, 2013 09:32
-
-
Save jtuttas/5466063 to your computer and use it in GitHub Desktop.
Geburtstage die auf einen Sonntag liegen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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