Phoenix_uy
Phoenix_uy

Reputation: 3294

WinForms - A datepicker with date AND time?

I just cant find how can i make the Windows Forms DatePicker to have both date and time for the user to select. It doesn't?

The only way i see is to put two Datepickers one with the date and one with the time and combine the DateTime object that i need... that's the only way?

Upvotes: 0

Views: 1551

Answers (1)

Colin Steel
Colin Steel

Reputation: 1055

Is the Winforms DateTimePicker not available for some reason? If it is available, you can create one, choose 'Custom' for the Format property then type yyyy-MM-dd hh:mm:ss or whatever you want in the CustomFormat property.

Upvotes: 2

Related Questions