Skip to content

Instantly share code, notes, and snippets.

@mwjcomputing
Created September 26, 2019 17:51
Show Gist options
  • Save mwjcomputing/db9c3ec8afb5f987b517c856b562a1ca to your computer and use it in GitHub Desktop.
Save mwjcomputing/db9c3ec8afb5f987b517c856b562a1ca to your computer and use it in GitHub Desktop.
A simple PowerShell script to calculate days until Converge 2020.
# ==================================================
# = 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