# 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.

![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…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/7a03dd3e243247f7b7fa2a46f9df09b8.webp)

- Category: PowerShell
- Level: Apprentice
- Tags: get-date, net-types-in-powershell, powershell, timespan, type-conversion
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-types-cheat-sheet
