File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9595 if ($Day -eq 0 ) {
9696 Write-Host - foregroundColor green " TODAY 🌡°C ☂️mm 💧 💨km/h ☀️UV ☁️ 👁km at $Area ($Region , $Country )"
9797 } elseif ($Day -eq 1 ) {
98- Write-Host - foregroundColor green " TOMORROW"
98+ $Date = (Get-Date ).AddDays(1 )
99+ [string ]$Weekday = $Date.DayOfWeek
100+ Write-Host - foregroundColor green " $ ( $Weekday.toUpper ()) "
99101 } else {
100- Write-Host - foregroundColor green " Day after tomorrow"
102+ $Date = (Get-Date ).AddDays(2 )
103+ [string ]$Weekday = $Date.DayOfWeek
104+ Write-Host - foregroundColor green " $ ( $Weekday.toUpper ()) "
101105 }
102106 $Day ++
103107 }
Original file line number Diff line number Diff line change 55 This PowerShell script determines and writes the current date.
66. EXAMPLE
77 PS> ./write-date
8- Sunday, October 17, 2021
8+ 📅12/25/2022
99. LINK
1010 https://github.com/fleschutz/PowerShell
1111. NOTES
You can’t perform that action at this time.
0 commit comments