Skip to content

Nepali Date LibraryBikram Sambat Date Handling Made Easy

A comprehensive library for working with Nepali (Bikram Sambat) dates in both NodeJS and Python.

Quick Comparison

FeatureNodeJS PackagePython PackagePHP Package (Coming Soon)
Package Namenepali-date-librarynepali-date-librarynepali-date-library
LanguageTypeScript / JavaScriptPython 3.xPHP 8.x
Importimport { NepaliDate } ...from nepali_date_library ...use NepaliDate\ ...
Main UseWeb Apps, React, Vue, BackendData Processing, Scripts, Django, FlaskLaravel, Symfony, APIs

Quick Start

typescript
// npm install nepali-date-library
import { NepaliDate } from "nepali-date-library";

const date = new NepaliDate();
console.log(date.format("YYYY-MM-DD")); // 2082-10-01
python
# pip install nepali-date-library
from nepali_date_library import NepaliDate

date = NepaliDate()
print(date.format("YYYY-MM-DD")) # 2082-10-01
php
// composer require sandip-ghimire/nepali-date-library
// Stay tuned for the PHP version!

Detailed Documentation

📦 NodeJS / TypeScript

Comprehensive guide for web and server-side JS/TS environments.

View NodeJS Docs →

🐍 Python

Detailed documentation for Python library usage and integration.

View Python Docs →

🐘 PHP (Coming Soon)

Support for PHP projects and Laravel integration is on the way.

Released under the MIT License.