PersianDate 3.5.5

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

// Install PersianDate as a Cake Tool
#tool nuget:?package=PersianDate&version=3.5.5

string persianSampleDateString1 = "1393/08/01 21:53:26";
DateTime datetime1 = persianSampleDateString1.ToEn();

datetime1.ToFa("D");//پنج شنبه, 01 آبان 1393
datetime1.ToFa("g");//93/08/01 21:53
datetime1.ToFa("G");//93/08/01 21:53:26
datetime1.ToFa("f");//1393/08/01 21:53
datetime1.ToFa("F");//پنج شنبه, 01 آبان 1393 ساعت 21:53:26
datetime1.ToFa("M");//اول آبان
datetime1.ToFa("y");//1393 آبان
datetime1.ToFa("yy MMM");//93 آبان
datetime1.ToFa("yyyy/MM/dd ");//1393/08/01
datetime1.ToFa("yy-M-dd ");//93-8-01
datetime1.ToFa("ddd d MMM yyyy");//جمعه 1 آبان 1393
datetime1.ToFa("ddd D MMM yyyy");//جمعه اول آبان 1393
"1393/08/01 21:00".ToEn().ToFa("YYYY/MM/dd hh:mm"));// "1393/08/01 21:00"
//default format
"1393/08/01 16:20".ToEn();//10/23/2014 4:20:00 PM
"1/8/1393".ToEn().ToLongDateString();//Thursday, October 23, 2014
"93-8-01".ToEn().ToString("U");//Wednesday, October 22, 2014 8:30:00 PM
"93-8-01".ToEn().ToString("y");//October 2014
"93 8 01".ToEn().ToString("ddd d MMM yyyy");//Thu 23 Oct 2014
"1_8_1393 ".ToEn().ToString("g");//10/23/2014 12:00 AM
" 1_8_1393 16:20".ToEn().ToString("f");//Thursday, October 23, 2014 4:20 PM
" 1.8.1393 16:20:48".ToEn().ToString("R");//Thu, 23 Oct 2014 16:20:48 GMT

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  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. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 3.5

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on PersianDate:

Package Downloads

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.5.5 19,699 1/13/2018
3.5.4 1,220 1/12/2018
3.5.3 1,327 12/3/2017
2.1.8 2,716 9/29/2016
1.3.5 4,099 11/2/2014

- Adding extension mthods for Datetime and Datetime?
- Converting time in string back to georgian date
- adding persian long date of month string like بیست و یکم with D string format param