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 NepaliDateSignature
def get_date(self) -> int:Parameters
- None.
Return Value
- Type:
int - Range:
1to32 - Description: Day of the month integer.
Example
from nepali_date_library import NepaliDate
date = NepaliDate("2081-07-15")
print(date.get_date()) # 15Related
date.set_date(): Mutate the day of the month.date.get_day(): Retrieve the day of the week.
Advertisement
date.get_month()
Retrieve the zero based Bikram Sambat month index from zero for Baisakh to eleven for Chaitra.
date.get_day()
Retrieve the numeric day of the week index from zero for Sunday through six for Saturday.