jonsamp / date-streaks

Find a variety of streak metrics from a list of dates
MIT License
49 stars 7 forks source link

Add a custom StartDate option to trackRecord feature. #8

Closed noemiquezada closed 4 years ago

noemiquezada commented 4 years ago

Expanded the trackRecord() feature to allow Users to select a StartDate in which they want the trackRecord to start at. Right now it defaults to today's date, but I was hoping that it could calculate trackRecords for a specific week, starting at the end of that week. So thought, adding the custom StartDate will solve for this usecase and other similar use cases in which a User doesn't want to use today's date for the start of the TrackRecord.

Changelog:

IMG_7391

noemiquezada commented 4 years ago

I agree! endDate is a better name for the custom option. I've committed your suggestions. Looking forward to using this feature. 🙂