DateConverter.Core
2.1.0
dotnet add package DateConverter.Core --version 2.1.0
NuGet\Install-Package DateConverter.Core -Version 2.1.0
<PackageReference Include="DateConverter.Core" Version="2.1.0" />
paket add DateConverter.Core --version 2.1.0
#r "nuget: DateConverter.Core, 2.1.0"
// 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:
- npDaysInMonth - gives the number of days available in equivalent nepali month
- npYear - gives the year value for converted nepali date
- npMonth- gives the month in integer value for converted nepali date
- npDay - gives the day number for converted nepali date
- dayName - gives the day name for equivalent nepali date
- 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 | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.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. |
-
.NETStandard 2.1
- Unity (>= 5.11.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1. Increased conversion range to 2122 BS (2065 AD)