Skip to content

minHour and maxHour#2327

Open
raponiwalter wants to merge 2 commits intodangrossman:masterfrom
raponiwalter:master
Open

minHour and maxHour#2327
raponiwalter wants to merge 2 commits intodangrossman:masterfrom
raponiwalter:master

Conversation

@raponiwalter
Copy link
Copy Markdown

No description provided.

added minHour and maxHour for 24 format
removed console.log
@Wernfried
Copy link
Copy Markdown

Wernfried commented Mar 26, 2025

In my fork https://github.com/Wernfried/daterangepicker I added parameter isInvalidTime where you can set it.

isInvalidTime: (time, side, unit) => {   
   const minHour = 8;   
   const maxHour = 18;
   if (unit == 'hour') {
      return time.hour < minHour || time.hour > 18;
   } else {
      return false;
   }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants