PersianDateTimeControl 2.0.1

dotnet add package PersianDateTimeControl --version 2.0.1
NuGet\Install-Package PersianDateTimeControl -Version 2.0.1
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="PersianDateTimeControl" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PersianDateTimeControl --version 2.0.1
#r "nuget: PersianDateTimeControl, 2.0.1"
#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.
// Install PersianDateTimeControl as a Cake Addin
#addin nuget:?package=PersianDateTimeControl&version=2.0.1

// Install PersianDateTimeControl as a Cake Tool
#tool nuget:?package=PersianDateTimeControl&version=2.0.1

PersianDateTimePicker

this control only used for .net windows application.

Installation

dotnet add package PersianDateTimeControl


After installation, you will see three controls in the toolbox in visual studio IDE.

  1. PersianDatePicker
  2. PersianDateTimePicker
  3. PersianTimePicker

drag one of control that you need.

for example : I drag PersianDateTimePicker and rename it to pdtpFrom.

if you want to set control to current date.

        pdtpFrom.DatePicker.Value = DateTime.Now;
        pdtpFrom.TimPicker.Value = DateTime.Now.ToString("HH:MM:ss");

you can set time like

        pdtpFrom.TimPicker.Value = "00:00:00";
        pdtpTo.TimPicker.Value = "23:59:59";

for get value from control

            var FromDate = pdtpFrom.Value.ToString(); // Gregorian Date
            var PersianFromDate = pdtpFrom.Text; //Persian Date
Product Compatible and additional computed target framework versions.
.NET Framework net20 is compatible.  net35 was computed.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has 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
2.0.1 846 8/2/2021
2.0.0 319 7/27/2021
1.0.0 356 7/20/2021

Fix Bug: not a valid calendar for the given culture.parameter name: value
Fix Bug: Prevent the entry of some invalid dates.