longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

startofweek on another day #422

Closed mammad2c closed 6 years ago

mammad2c commented 6 years ago

How can I set calendar to start day from 'saturday'?

aaronkzhou commented 6 years ago

startOfWeek: 'saturday',

holtkamp commented 6 years ago

@mammad2c have a look at example 12 https://longbill.github.io/jquery-date-range-picker/#demo12

iuliang07 commented 6 years ago

This only works for 'sunday' / 'monday', it doesn't work for other days. Can this be fixed please?

holtkamp commented 6 years ago

@iuliang07 yes, currently only 'sunday' / 'monday' is supported.

This is also documented: https://longbill.github.io/jquery-date-range-picker/#configuration

So nothing is "broken" or should be "fixed".

If you want to extend the functionality to support other days, a Pull Request with this functionality would be welcome. Bot looking at the code, it seems not that trivial to implement.