Giter Site home page Giter Site logo

przbadu / nepalidateconverter.net Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 3.0 45 KB

C# Class library for nepali date converter, with NUnit testing framework

Home Page: https://www.nuget.org/packages/NepaliDateConverter.Net

License: MIT License

C# 100.00%
nepali-date nepali-date-converter csharp asp-net class-library

nepalidateconverter.net's Introduction

Build Status NuGet

Unmaintained!!!

NepaliDateConverter.Net

C# Class library for nepali date converter, with NUnit testing framework

Installation

Option 1

Download Latest Release extract zip file and include NepaliDateConverter.dll file to your project reference.

Option 2

You can install https://www.nuget.org/packages/NepaliDateConverter.Netpackage using Nuget package manger.

Please use version >= 2.x

Install-Package NepaliDateConverter.Net

Usage

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

TODO

  • Add more specs

Gotcha

Till now, we can only convert date from 2000 to 2033 B.S (nepali date).

Development

  • 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

Contributing

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.

References

License

The library is available as open source under the terms of the MIT License.

nepalidateconverter.net's People

Contributors

przbadu avatar userrails avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

nepalidateconverter.net's Issues

Nuget Package Manager is not working

Could not install package 'NepaliDateConverter.Net 2.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.