mengxiong10 / vue2-datepicker

A datepicker / datetimepicker component for Vue2
https://mengxiong10.github.io/vue2-datepicker/index.html
MIT License
1.51k stars 405 forks source link

[QUESTION] Time-picker issue with end-date value. #705

Closed fickezapad closed 2 years ago

fickezapad commented 2 years ago

datepicker When you select from the 'ranges' tab on the left side of the panel, the pre-selected value of end-date is 11;59 and its giving false data back because the time should be going to 23;59 so it calculates only half of the day. Here's the code for time-picker and how I'm getting end-date. 2022-05-12_10-49 2022-05-12_10-50

I tried setting :ranges="false" and :show-dropdowns="true" to eliminate that issue, but then other problem occur. When you select a month form the dropdown menu it only allows you to select dates from within 1 month range. For example: 2022-05-12_10-47 If i tried to select march on the start date select it will only allow me to select april as end date and so on. I can't select for example startdate january and end date december.

So help with either one of the changes will mean a lot.

mengxiong10 commented 2 years ago

Maybe you should replace 'hh' with 'HH'

fickezapad commented 2 years ago

I actually use 'HH', where do you see 'hh' being used?

mengxiong10 commented 2 years ago

@fickezapad I guess. Can you show more detail?

fickezapad commented 2 years ago

2022-05-16_09-36

This is the exact usage of the component.

mengxiong10 commented 2 years ago

what's the picker.startDate?

mengxiong10 commented 2 years ago

Whick version do you use?

fickezapad commented 2 years ago

start

timeType

created() 2022-05-16_09-57

fickezapad commented 2 years ago

Whick version do you use?

I use the version for Vue2

mengxiong10 commented 2 years ago

Are you using vue2-datepicker ? I feel like it's another component.

fickezapad commented 2 years ago

2022-05-16_10-06

fickezapad commented 2 years ago

i am using different componenat, am i?

mengxiong10 commented 2 years ago

i am using different componenat, am i?

Yes, It's another component not this.