Share via

Month display:

Phornwiboon Sripa 0 Reputation points
2025-09-25T06:56:14.9366667+00:00

How to set the calendar display to prevent overlapping with the month display? The problem is that when the current date is near the end of the month, the month display changes to the new month, which may cause confusion.

Month disply

Windows for business | Windows 365 Business
0 comments No comments

2 answers

Sort by: Most helpful
  1. Phornwiboon Sripa 0 Reputation points
    2025-09-26T00:19:25.2866667+00:00

    Dear Oliver Nguyen

    Thank you very much, I'm not the coding. Can setting this via Windows UI?

    Was this answer helpful?

    0 comments No comments

  2. Oliver Nguyen 1,495 Reputation points
    2025-09-25T07:46:33.87+00:00

    Hi Phornwiboon Sripa,

    Force Calendar to Show Current Month: If you’re coding your own calendar (e.g., in C#, JavaScript, WPF, WinUI, etc.), set the calendar’s display month explicitly based on DateTime.Today.

    Example:
    calendar.DisplayDate = DateTime.Today;

    calendar.DisplayDateStart = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1);

    calendar.DisplayDateEnd = calendar.DisplayDateStart.AddMonths(1).AddDays(-1);

    ==> This forces the control to always show the current month grid.

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.