DateConverter.Core
1.0.1
See the version list below for details.
dotnet add package DateConverter.Core --version 1.0.1
NuGet\Install-Package DateConverter.Core -Version 1.0.1
<PackageReference Include="DateConverter.Core" Version="1.0.1" />
paket add DateConverter.Core --version 1.0.1
#r "nuget: DateConverter.Core, 1.0.1"
// Install DateConverter.Core as a Cake Addin #addin nuget:?package=DateConverter.Core&version=1.0.1 // Install DateConverter.Core as a Cake Tool #tool nuget:?package=DateConverter.Core&version=1.0.1
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(desiredEnglishDate, 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 | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.1
- Unity (>= 5.8.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.