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 e262ee4 commit be7c7e6Copy full SHA for be7c7e6
danfojs-node/src/core/date_range.js
@@ -76,7 +76,8 @@ export class date_range {
76
//check if the end year is greater than start year
77
let start_year = start_date.getFullYear();
78
let end_year = end_date.getFullYear();
79
- if ((start_year < end_year)){
+ if ((start_year <= end_year) && (start_date.getMonth() !== end_date.getMonth())){
80
+
81
// end_range = start_range + end_range
82
if (this.freq == "M"){
83
end_range = this.month_end(start_date, end_date);
0 commit comments