/** * @license * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect } from "react"; import NepaliDate from 'nepali-date-converter'; import { Converter } from "./components/Converter"; import { Calendar, Info, Clock, Menu } from 'lucide-react'; const nepaliMonths = [ 'Baisakh', 'Jestha', 'Asar', 'Shrawan', 'Bhadra', 'Aswin', 'Kartik', 'Mangsir', 'Poush', 'Magh', 'Falgun', 'Chaitra' ]; const TodayWidget = () => { const [bsToday, setBsToday] = useState(''); const [adToday, setAdToday] = useState(''); useEffect(() => { const today = new Date(); const todayBS = new NepaliDate(); setAdToday(today.toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric', weekday: 'long' })); setBsToday(`${todayBS.getYear()} ${nepaliMonths[todayBS.getMonth()]} ${todayBS.getDate()}`); }, []); return (

Today (BS)

{bsToday}

Today (AD)

{adToday}

); }; export default function App() { return (
Nepali Date Converter
{/* Hero Section */}
2080 BS Calendar Supported

Convert Nepali Dates Instantly

Fast and accurate Bikram Sambat (BS) ↔ Gregorian (AD) date conversion tool. Get instant results with full readable formats and weekdays.

{/* Ad Placeholder Top */}
{/* Info Section */}

What is the Nepali Calendar?

The Bikram Sambat (BS) calendar is the official calendar of Nepal. It is approximately 56 years and 8 months ahead of the Gregorian (AD) calendar.

Unlike the solar Gregorian calendar, the Nepali calendar combines solar and lunar tracking. This means that the number of days in each month can vary slightly from year to year, typically ranging between 29 and 32 days.

Why use a converter?

Because the month lengths vary, converting between BS and AD dates requires precise data tables mapping the exact start days of every month. This tool uses rigorous historical conversion logic to give you the exact corresponding date.

The BS calendar is heavily used for official government documents, legal age calculations, bank transactions, and celebrating cultural festivals like Dashain and Tihar.

{/* FAQ Section */}

Frequently Asked Questions

How accurate is this converter?

This converter is 100% accurate within its given range (generally 2000 BS to 2090 BS). It relies on official mapped datasets for the exact number of days in each varying Nepali month.

How do I calculate my age in Nepal?

To calculate your precise age, simply use this converter to find your birth date in both AD and BS formats. From there, you can subtract your birth year from the current year in either calendar system.

What is today's Nepali date?

Our converter automatically presets to today's date based on your device's timezone. Just look at the pre-filled values in the converter widget above.

{/* Ad Placeholder In-Content */}
); }