{"repo":"subeshb1/Nepali-Date","free":true,"listed":false,"github":"https://github.com/subeshb1/Nepali-Date","clone":"git clone https://github.com/subeshb1/Nepali-Date.git","description":"📅 A small JS Library to convert English Date to Nepali and Vice Versa","language":"TypeScript","stars":66,"topics":["nepali","datetime","nepali-date-converter","nepali-calendar","nepal","bikram-samwat-converter","bikram-samvat","bikram-samwat","bs","ad-bs"],"license":"MIT","category":"productivity","readme_excerpt":"Nepali-Date A small Javascript/Typescript Library to convert English Date to Nepali and Vice Versa. Installation CDN: Node JS: Deno: Basic Usage API Constructors constructor(value?: string number Date) String Provide a valid Nepali date string. The current supported formats are: Example: Number The number value represents the UTC timestamp that will be converted to Nepali date. Example: Date Javascript Date object Example: Empty constructor If no values are provided, the current day date will be converted to Nepali date. constructor(year: number, monthIndex: number, date: number) This constructor takes year, monthIndex i.e 0-11, and date. Example: getYear(): number Get Nepali date year. getMonth(): number Get Nepali month index. getDate(): number Get Nepali date for the month getDay(): number Get Week day index for the date. toJsDate(): Date Returns Javascript Date converted from nepali date. getBS(): IYearMonthDate Returns Nepali date fields in an object implementing IYearMonthDate getAD(): IYearMonthDate Returns AD date fields in an object implementing IYearMonthDate Example: getDateObject(): IAdBs Returns an object with AD and BS object implementing IYearMonthDate Example: format(formatString: string, language: 'np' 'en'): string Format Nepali date string based on format string. Set language to 'np' for nepali format. The strings can be combined in any way to create desired format. setYear(year: number) Set year in the current date object. It only takes positive value i.e ","default_branch":null,"files":null,"tree":[],"storefront":"/r/subeshb1","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/subeshb1/Nepali-Date/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}