C# Class library for nepali date converter, with NUnit testing framework
Download Latest Release extract zip file and include NepaliDateConverter.dll
file to your project reference.
You can install https://www.nuget.org/packages/NepaliDateConverter.Netpackage using Nuget package manger.
Please use version
>= 2.x
Install-Package NepaliDateConverter.Net
Convert English Date to Nepali Date
DateConverter converter = DateConverter.ConvertToNepali(2017, 1, 6);
converter.Year // => 2073
converter.Month // => 9
converter.Day // => 22
converter.WeekDayName // => Friday
converter.MonthName // => Poush
converter.WeekDay // => 6
convert B.S to A.D
DateConverter converter = DateConverter.ConvertToEnglish(2073, 9, 22);
converter.Year // => 2017
converter.Month // => 1
converter.Day //=> 6
converter.WeekDayName // => Friday
converter.MonthName // => January
converter.WeekDay // => 6
- Add more specs
Till now, we can only convert date from 2000 to 2033 B.S (nepali date).
- Fork this repository to your github account; And/Or clone it.
- And then open it in your
Visual Studio
IDE. - Right click on Solution from Project Explorer and then select
Rebuild
Solution. - It will download all required packages from Nuget package manager.
- Run
NUnit
test project to make sure everyting is green
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/NepaliDateConverter.Net. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The library is available as open source under the terms of the MIT License.