DateConverter.Core 2.1.0

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

// Install DateConverter.Core as a Cake Tool
#tool nuget:?package=DateConverter.Core&version=2.1.0

This library is created for conversion of English date to Nepali date and vice versa. One must be able to get the date in desired format . Library is thoroughly tested and is highly efficient.

To get instance of the DateConverterService , import the namespace

using DateConverter.Core.Service_Factory;

and use the following code

var dateConverterService = DateConverterFactory.getDateConverterService();

In order to convert English date to Nepali date use the code shown below:

var nepaliDateClass=dateConverterService.ToBS(englishDate, desiredDateFormat);

desiredDateFormat is enum and can have following values:

        mDy
        dMy
        yMd

nepaliDateClass contains following properties:

  1. npDaysInMonth - gives the number of days available in equivalent nepali month
  2. npYear - gives the year value for converted nepali date
  3. npMonth- gives the month in integer value for converted nepali date
  4. npDay - gives the day number for converted nepali date
  5. dayName - gives the day name for equivalent nepali date
  6. getFormattedDate() method - returns nepali date in desired format

In order to convert Nepali date to English date use the code shown below:

var englishDateClass=dateConverterService.ToAD(desiredNepaliDate, desiredDateFormat);

englishDateClass has similar properties as nepaliDateClass.

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.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 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)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

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.1.0 463 5/2/2022
2.0.0 378 9/10/2021
1.0.1 342 8/16/2021
1.0.0 774 12/3/2018

1. Increased conversion range to 2122 BS (2065 AD)