Nepali DateNepali DateBikram Sambat Date Engine
Methods

date.get_date()

Retrieve the numeric day of the month from a NepaliDate instance.

The get_date method returns the day of the month as an integer from 1 to 32 for the current NepaliDate instance. Unlike Gregorian months which have at most 31 days, Bikram Sambat calendar months can extend up to 32 days depending on the year and month.


Import

from nepali_date_library import NepaliDate

Signature

def get_date(self) -> int:

Parameters

  • None.

Return Value

  • Type: int
  • Range: 1 to 32
  • Description: Day of the month integer.

Example

from nepali_date_library import NepaliDate

date = NepaliDate("2081-07-15")
print(date.get_date()) # 15

Advertisement

On this page