BsadConverter.Tool 1.1.0

dotnet tool install --global BsadConverter.Tool --version 1.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local BsadConverter.Tool --version 1.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=BsadConverter.Tool&version=1.1.0
                    
nuke :add-package BsadConverter.Tool --version 1.1.0
                    

BsadConverter

Bikram Sambat (BS) ↔ Gregorian (AD) date conversion. Offline, zero dependencies, bilingual (English + Nepali). Targets netstandard2.0, so it works on .NET Framework and modern .NET.

Calendar data is the verified medic/bikram-sambat table. Range 1970–2090 BS (1913–2034 AD).

Usage

using BsadConverter;

Patro.AdToBs("2026-06-26").FormattedNe;   // "असार १२, २०८३ बि.सं."
Patro.AdToBs("2026-06-26").FormattedEn;   // "Ashadh 12, 2083 BS"
Patro.BsToAd(2083, 1, 1);                 // "2026-04-14"  (Nepali New Year)
Patro.Today().WeekdayNe;                  // today in Nepal (Asia/Kathmandu)

Out-of-range or invalid input throws DateConversionException.

CLI

There's also a command-line tool:

dotnet tool install -g BsadConverter.Tool
bsad today
bsad ad2bs 2026-06-26
bsad bs2ad 2083-03-11

MIT licensed

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.1.0 144 6/26/2026
1.0.3 125 6/26/2026
1.0.2 125 6/26/2026
1.0.1 114 6/26/2026
1.0.0 119 6/26/2026