Bikram Sambat
Contact ↗Contact ↗ (opens in a new tab)
GitHubGitHub (opens in a new tab)DiscordDiscord (opens in a new tab)
  • About
  • Introduction
  • Table of contents
  • Initialization
    • Initializing with a Date String
    • Initializing with Another BikramSambat Instance
    • Default Initialization
  • Constructor
  • Properties
  • Working with Dates
    • getDay
    • getMonth
    • getYear
    • setDay
    • setMonth
    • setYear
  • Formating Dates
    • format
    • toString
  • Comparing Dates
    • isAfter
    • isBefore
    • isSameDay
    • isSameMonth
    • isSameWeek
    • isSameYear
  • Fetching Relative Dates
    • getPreviousDay
    • getNextDay
    • getWeekStartDate
    • getWeekEndDate
    • startOfMonth
    • endOfMonth
  • Static Methods
    • toAD
    • fromAD
    • getWeekdayNames
    • getMonthNames
  • Navigating Dates
    • getNextYear
    • getPreviousYear
    • toAD
    • addYears
    • addMonths
    • addDays
    • getDaysInMonth
    • isLeapYear
    • getDayOfWeek
    • getPreviousMonth
    • getNextMonth

On This Page

  • addMonths(months: number): BikramSambat
Question? Give us feedback → (opens in a new tab)Edit this page
Navigating Dates
addMonths

addMonths(months: number): BikramSambat

Adds the given number of months to the Bikram Sambat instance.

const date = new BikramSambat('2078-05-15')
date.addMonths(6) // Adds 6 months to the date
addYearsaddDays

Bikram Sambat by Ask Buddie