Convertify 1.1.9
dotnet add package Convertify --version 1.1.9
NuGet\Install-Package Convertify -Version 1.1.9
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="Convertify" Version="1.1.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Convertify" Version="1.1.9" />
<PackageReference Include="Convertify" />
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 Convertify --version 1.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Convertify, 1.1.9"
#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 Convertify@1.1.9
#: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=Convertify&version=1.1.9
#tool nuget:?package=Convertify&version=1.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Convertify
Convertify is a lightweight parsing and conversion library for .NET 8+, designed to make working with strings, DateTime, Guid, and Google Protobuf Timestamp types simple and safe.
Features
- Safe conversions with validation and helpful exception messages.
- DateTime ↔ Timestamp conversion helpers.
- String ↔ Guid parsing (nullable and non-nullable).
- Flexible DateTime parsing supporting many formats.
- Modern C# 12 code with nullable and implicit usings enabled.
Installation
dotnet add package Convertify
Usage Examples
String → DateTime
using Convertify.DateTimeConversions;
var date = "2025-10-26".ToNonNullableDateTime();
// throws ValidationException if invalid
Timestamp → DateTime
using Google.Protobuf.WellKnownTypes;
using Convertify.DateTimeConversions;
var ts = Timestamp.FromDateTime(DateTime.UtcNow);
var dt = ts.ToNonNullableDateTime(); // returns UTC DateTime
DateTime → Timestamp
using Convertify.TimestampConversions;
var tsUtc = DateTime.UtcNow.ToTimestampUtc();
var tsLocal = DateTime.Now.ToTimestampLocal();
String → Guid
using Convertify.GuidConversions;
Guid id = "f719e4b1-fe9e-4992-a2bb-fd562fa3e19f".ToNonNullableGuid();
Guid? optionalId = "".ToNullableGuid(); // returns null
Flexible Date Parsing
using Convertify.StringParsings;
var result = "26/10/2025 14:30".ToDateTimeFlexible();
// supports many formats like "yyyy-MM-dd", "dd/MM/yyyy", etc.
License
MIT License
© 2025 Mazen Salah
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Google.Protobuf (>= 3.32.0)
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 |
|---|---|---|
| 1.1.9 | 272 | 1/21/2026 |
| 1.1.8 | 136 | 1/8/2026 |
| 1.1.7 | 114 | 1/8/2026 |
| 1.1.6 | 115 | 1/7/2026 |
| 1.1.5 | 239 | 12/22/2025 |
| 1.1.4 | 194 | 12/22/2025 |
| 1.1.3 | 312 | 12/21/2025 |
| 1.1.2 | 291 | 12/18/2025 |
| 1.1.1 | 450 | 12/8/2025 |
| 1.1.0 | 426 | 12/8/2025 |
| 1.0.7 | 223 | 12/4/2025 |
| 1.0.6 | 523 | 11/17/2025 |
| 1.0.5 | 264 | 11/10/2025 |
| 1.0.4 | 216 | 10/26/2025 |
| 1.0.3 | 184 | 10/26/2025 |
| 1.0.2 | 408 | 9/10/2025 |
| 1.0.1 | 190 | 9/10/2025 |
| 1.0.0 | 193 | 9/10/2025 |
Initial release with string/date/number parsing utilities.