Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Is there a way to limit the dates a user can select from a date/time picker? Or is there a good way to populate a dropdown list of dates they can pick from?

 

The background is that I am constructing a timesheet of sorts and want them to only be able to pick from the 1st or 16th of every month (as those dates coincide with the beginning of a new time period) so that i can generate a table for the 15 days following the date they pick. Which actually brings up another issue - if they pick the 16th, how can i account for months with 31 days without having the 16th date generated be the 1st of the next month?

 

Thanks in advance for any help!!

  • Moderators
Posted

I'm guessing that you're using Win Forms.

 

I don't think that you can display a partial month in the calendar. However, when the user clicks on a date outside your range then either discard it or alert them.

Visit...Bassic Software
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...