# DateTime

A value type representing a date and time, optionally related to local time or UTC.

## What is **DateTime** in C#?

**DateTime** — A value type representing a date and time, optionally related to local time or UTC.

```csharp
class Delivery
{
    DateTime deliveryDate = new(2026, 9, 27);
}
```

Level: Journeyman · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/journeyman)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/datetime
