DateConverterNepali 1.0.1
See the version list below for details.
dotnet add package DateConverterNepali --version 1.0.1
NuGet\Install-Package DateConverterNepali -Version 1.0.1
<PackageReference Include="DateConverterNepali" Version="1.0.1" />
paket add DateConverterNepali --version 1.0.1
#r "nuget: DateConverterNepali, 1.0.1"
// Install DateConverterNepali as a Cake Addin #addin nuget:?package=DateConverterNepali&version=1.0.1 // Install DateConverterNepali as a Cake Tool #tool nuget:?package=DateConverterNepali&version=1.0.1
DateConverterNepali
DateConverterNepali is a .NET library for converting dates between the Nepali (Bikram Sambat) calendar and the Gregorian calendar. It provides various utility methods for handling dates and times specific to the Nepali context.
Installation
Install the package via NuGet:
powershell
Install-Package DateConverterNepali
#Usage
Features
- Convert dates between Nepali (Bikram Sambat) and Gregorian calendars.
- Calculate time duration between two time spans.
- Retrieve month names by their Nepali month IDs.
- Fetch fiscal year details.
- Perform date operations specific to Nepali dates.
Dependencies
Customization and Support
For other customization feel free to contact me
Email: gauravmaharjan000@gmail.com
LinkedIn: Gaurav Maharjan License This project is licensed under the MIT License.
Sample code
using static DateConverterNepali.DateConverter; // Import the static class members
Console.WriteLine(GetDateInBS(DateTime.Now)); //convert AD to BS
// Get the equivalent date in Anno Domini (AD) format
Console.WriteLine(GetDateInAD("2081/03/31")); //convert BS to AD
Console.WriteLine(await (GetFiscalYear(DateTime.Now, DateConverterNepali.OprDateType.Nepali)));
var yearList = GetYearListAd().ToList();
// Log the list to the console
Console.WriteLine("List of Years in AD:");
foreach (var year in yearList)
{
Console.WriteLine(year);
}
This README.md
file provides a comprehensive guide on how to install, configure, and use the Nepali Date Converter package, including example code for integrating the service into an ASP.NET Core application.
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. |
.NET Core | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.1
- 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.