# Get-Date

*noun*

say it: **“GET DAYT”** **/ˈɡɛt ˈdeɪt/**

A PowerShell command that gets the current date and time, as an object with properties and methods.

## What does **Get-Date** do?

`Get-Date` gets the date and time right now. What it hands back is a date object, not text, so it has properties such as `DayOfWeek` and `Month` and methods such as `AddDays()`: `(Get-Date).AddDays(-7)` is this time a week ago.

```powershell
(Get-Date).DayOfWeek
(Get-Date).AddDays(-7)
```

## In a sentence

- “(Get-Date).AddDays(-7) gave Maya this time last week, using **Get-Date**.”
- “**Get-Date** | Format-List \* shows every property of today's date.”

Level: Novice · [More PowerShell terms at this level](https://www.ask-codey.com/glossary?category=powershell&level=1)

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/get-date
