0

UWP calendardatepicker is showing next month when the selected date is current date which has passed half of the days of month in the current view

As it can be referred from the pasted image screenshot that selected min date is 11th Feb but calendar is showing March in the month picker headerenter image description here

  • I did not quite understand your question. Please provide the steps to reproduce your issue. – Xie Steven Feb 12 '19 at 07:33
  • It is showing neighboring months when minDate is set (which is half the month passed in this case). So if I set the mindate as 9th Feb -> this works fine with the header showing February but if if minDate crosses half the month ie number of days of the current month < than the next month, it shows next month's name in the header. For eg: Here It should be February 2019, but instead it shows March, since March ( which is next/neighboring month ) has more days in the view than February. – Shruti Dutt Feb 12 '19 at 10:39
  • You could submit an issue on Github: https://github.com/Microsoft/microsoft-ui-xaml/issues – Xie Steven Feb 20 '19 at 02:05

2 Answers2

0

Check your calendar once, date is correct i.e 11 Feb 2019.

double-beep
  • 5,031
  • 17
  • 33
  • 41
Deepak Dk
  • 33
  • 8
0

You probably know already of this. I'm working around at the moment by setting minDate to a January 1st and maxDate to a December 31st.

I haven't looked into also using OutOfScope\BlackOut day items (so set min and max dates to the above and blocking the dates I need to block through other means) but that's my next investigation step.

double-beep
  • 5,031
  • 17
  • 33
  • 41