We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec3f0d4 commit 50dc115Copy full SHA for 50dc115
README.md
@@ -45,6 +45,16 @@ LaravelNepaliDate::from($nepDate)->toEnglishDate(format: 'l, jS F Y');
45
// Format Specifiers are supported and listed below
46
LaravelNepaliDate::from($nepDate)->toEnglishDate(format: 'l, j F Y', locale: 'np');
47
// Result: आइतबार, २२ बैशाख १९९६
48
+
49
+// Get total days in a month of a year
50
+use Anuzpandey\LaravelNepaliDate\Enums\NepaliMonth;
51
+// month can be NepaliMonth::XXX or month number (1-12)
52
+LaravelNepaliDate::daysInMonth(NepaliMonth::BAISAKH, 2053);
53
+// Result: 31
54
55
+// Get total days in a year
56
+LaravelNepaliDate::daysInYear(2053);
57
+// Result: 365
58
```
59
60
## Format Specifiers
0 commit comments