set datetimepicker value to null vb

The solution for “set datetimepicker value to null vb” can be found here. The following code will assist you in solving the problem.

‘When the user press “clear button” or “delete key” do

dtpData.CustomFormat = ” ” ‘An empty SPACE
dtpData.Format = DateTimePickerFormat.Custom

‘On DateTimePicker1_ValueChanged event do

dtpData.CustomFormat = “dd/MM/yyyy”

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts