Numbers, Dates and Types

Every value in PowerShell has a type, such as a whole number, text or a date; [int], [decimal] and [datetime] turn text into the type you need, and subtracting dates, AddDays and Get-Date -Format answer questions such as how many days are left until a trip.

Updated

Cheat sheet for the lesson Numbers, Dates and Types: Every value in PowerShell has a type, such as a whole number, text or a date; [int], [decimal] and [datetime] turn text into the type you need, and subtracting dates, AddDays and Get-Date -Format answer questions such as how many days are left…
Category
PowerShell
Level
Apprentice
Tags
get-date, net-types-in-powershell, powershell, timespan, type-conversion