Jump to content

Between Date picker - max allowed days between not working as expected


Estie

Recommended Posts

Hi,

I am using a between date picker on an IC.

I have set the maximum allowed days between to 2.

This is however allowing me to pick dates up to 3 days ahead.

When I reduce the max allowed days between to 1, then the calendar works as expected.

I am using a calendar that includes all days of the week and weekends but excludes BHs.

Is this correct?
 

For example:

Start date chosen is 18.05.23 - I can pick dates up to 20.5.23.

image.png.9d521cf1c9b9d7b36a5f1157ac310f38.png

 

image.png.75796e9d241ce2876db61a4d164481c6.png

Thanks

Stefania

Link to comment
Share on other sites

@Estie I did some tests and couldn't find any issues. Before I dig dipper let try to see how it works.
Date range is applied to first date (FROM) and here for example value 0 represents current day, value 1 day after and so on.. 
When you put 7 as Start and 30 as End it means that you can pickup any date here between 7 and 30 days ahead but second date will be limited to max 2 days from date picked as start.

Now there is also possible to apply calendar with restrictions to days off - this means days selected as NON WORKING (no working hours found) which cause that date range will be shifted until first working day.

For example if you have calendar call WEEKENDS where you select working days from MON to FRI, then put in date range FROM 0 TO 9 (so 10 days) it will cover exactly two weeks from now like on screenshot below.

image.png

Hopefully it make more sens now.

Thanks you,
Miro

Link to comment
Share on other sites

Hi @Miro

I think I understand.  I did not realise that the current day is being counted as 0.

So the max number of days between does not include the current day.

I wish to  include the current day so I will just leave the max days between to 1.

It is a bit confusing, but thank you for explaining.

Stefania

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...