PoshCode Archive  Artifact [e2ee8dfdfa]

Artifact e2ee8dfdfad192ccbd378c8f2b584d215462b021fd80ab8aa8b2b79f1ca99cd8:

  • File Get-Tomorrow.ps1 — part of check-in [e64ee469f2] at 2018-06-10 13:06:16 on branch trunk — From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes (user: Lee Holmes size: 764)

# encoding: ascii
# api: powershell
# title: Get-Tomorrow.ps1
# description: From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
# version: 0.1
# type: function
# author: Lee Holmes
# license: CC0
# x-poshcode-id: 2166
# x-archived: 2016-03-18T21:42:52
# x-published: 2011-09-09T21:41:00
#
#
##############################################################################
## Get-Tomorrow
##
## Get the date that represents tomorrow
##
## From Windows PowerShell Cookbook (O'Reilly)
## by Lee Holmes (http://www.leeholmes.com/guide)
##
##############################################################################

Set-StrictMode -Version Latest

function GetDate
{
    Get-Date
}

$tomorrow = (GetDate).AddDays(1)
$tomorrow