Created
September 26, 2019 17:51
-
-
Save mwjcomputing/db9c3ec8afb5f987b517c856b562a1ca to your computer and use it in GitHub Desktop.
A simple PowerShell script to calculate days until Converge 2020.
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
# ================================================== | |
# = FileName: daysTillConverge2020.ps1 | |
# = Author: Matt Johnson (@mwjcomputing) | |
# = Description: Calculates days until Converge 2020 | |
# ================================================== | |
# Set start of Converge 2020 date and time | |
$ConvergeDate = Get-Date -Year 2020 -Month 5 -Day 14 -Hour 8 -Minute 0 | |
# Get current date and time | |
$Today = Get-Date | |
# Calculate delta | |
$DaysBetween = $ConvergeDate - $Today | |
# Print output | |
Write-Host "There are $($DaysBetween.Days) days until Converge 2020." | |
Write-Host "Don't forget to grab your ticket today at https://convergeconference.org." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment