PeselTools 1.0.0

Tools and helpers for PESEL (Polish identification number). Simple and fast valid and parse (sex, birthday) from string values.

Install-Package PeselTools -Version 1.0.0
dotnet add package PeselTools --version 1.0.0
<PackageReference Include="PeselTools" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PeselTools --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

PeselTools

NuGet
NuGet

Tools and helpers for PESEL (Polish identification number). Simple and fast valid and parse (sex, birthday) from string values.

Fully cooperate with checksum checking and 2000+ birthdays

Install

with nuget
Install-Package PeselTools
with .NET CLI
dotnet add package PeselTools

How to use

Parse
  //Parse
  string value = "70092746571";
  var pesel = Pesel.Parse(value);
  
  //or TryParse
  var isValid = Pesel.TryParse(value, out var result);

  //birthday
  var bd = pesel.BirthDate;

  //sex
  var sex = pesel.Sex;

  Console.WriteLine($"Pesel {pesel}. Birthday: {bd}, sex: {sex}.");
Validation only
  string value = "70092746571";
  var isValid = Pesel.IsValid(value);

PeselTools

NuGet
NuGet

Tools and helpers for PESEL (Polish identification number). Simple and fast valid and parse (sex, birthday) from string values.

Fully cooperate with checksum checking and 2000+ birthdays

Install

with nuget
Install-Package PeselTools
with .NET CLI
dotnet add package PeselTools

How to use

Parse
  //Parse
  string value = "70092746571";
  var pesel = Pesel.Parse(value);
  
  //or TryParse
  var isValid = Pesel.TryParse(value, out var result);

  //birthday
  var bd = pesel.BirthDate;

  //sex
  var sex = pesel.Sex;

  Console.WriteLine($"Pesel {pesel}. Birthday: {bd}, sex: {sex}.");
Validation only
  string value = "70092746571";
  var isValid = Pesel.IsValid(value);

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 281 3/22/2020