PersianDateTimeControl 2.0.1
dotnet add package PersianDateTimeControl --version 2.0.1
NuGet\Install-Package PersianDateTimeControl -Version 2.0.1
<PackageReference Include="PersianDateTimeControl" Version="2.0.1" />
paket add PersianDateTimeControl --version 2.0.1
#r "nuget: PersianDateTimeControl, 2.0.1"
// 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.
- PersianDatePicker
- PersianDateTimePicker
- 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 | Versions 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. |
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.
Fix Bug: not a valid calendar for the given culture.parameter name: value
Fix Bug: Prevent the entry of some invalid dates.