Soenneker.Extensions.DateTime.Nullable
11.0.251
Prefix Reserved
dotnet add package Soenneker.Extensions.DateTime.Nullable --version 11.0.251
NuGet\Install-Package Soenneker.Extensions.DateTime.Nullable -Version 11.0.251
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Extensions.DateTime.Nullable" Version="11.0.251" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.DateTime.Nullable" Version="11.0.251" />
<PackageReference Include="Soenneker.Extensions.DateTime.Nullable" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Extensions.DateTime.Nullable --version 11.0.251
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.DateTime.Nullable, 11.0.251"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Extensions.DateTime.Nullable@11.0.251
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Extensions.DateTime.Nullable&version=11.0.251
#tool nuget:?package=Soenneker.Extensions.DateTime.Nullable&version=11.0.251
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Extensions.DateTime.Nullable
Compares nullable DateTime values by calendar date without repetitive HasValue checks.
Installation
dotnet add package Soenneker.Extensions.DateTime.Nullable
Usage
using Soenneker.Extensions.DateTime.Nullable;
DateTime? first = new DateTime(2026, 8, 29, 9, 15, 0);
DateTime? second = new DateTime(2026, 8, 29, 22, 45, 0);
bool sameDate = first.IsEqualTo(second); // true
bool bothMissing = ((DateTime?) null).IsEqualTo(null); // true
IsEqualTo() compares the Date properties only. Two null values are equal; null compared with a populated value is false. It does not convert time zones, so values representing the same instant can compare differently if their displayed calendar dates differ.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.251 | 55 | 11/18/2026 |
| 11.0.250 | 59 | 11/18/2026 |
| 11.0.249 | 94 | 11/11/2026 |
| 11.0.248 | 90 | 11/10/2026 |
| 11.0.247 | 112 | 10/27/2026 |
| 11.0.246 | 94 | 10/26/2026 |
| 11.0.245 | 97 | 10/26/2026 |
| 4.0.244 | 324 | 10/14/2026 |
| 4.0.243 | 100 | 10/14/2026 |
| 4.0.238 | 94 | 10/12/2026 |
| 4.0.237 | 94 | 10/12/2026 |
| 4.0.236 | 108 | 10/11/2026 |
| 4.0.235 | 197 | 9/24/2026 |
| 4.0.234 | 278 | 9/15/2026 |
| 4.0.233 | 130 | 9/12/2026 |
| 4.0.232 | 217 | 8/30/2026 |
| 4.0.231 | 125 | 8/29/2026 |
| 4.0.229 | 120 | 8/29/2026 |
| 4.0.228 | 571 | 7/28/2026 |
| 4.0.227 | 328 | 7/16/2026 |
Loading failed
Configure .NET CI defaults and daily source scans