Shamim Hafiz - MSFT
Shamim Hafiz - MSFT

Reputation: 22064

Preventing selection of Past Date in .NET DateTimePicker

Does .NET already include something which I can use to prevent selection of a past date in a DateTimePicker.

Upvotes: 1

Views: 2365

Answers (1)

Inisheer
Inisheer

Reputation: 20794

Try:

dateTimePicker.MinDate = DateTime.Today;

Upvotes: 2

Related Questions