Skip to content

DateTimePicker - How to assign current date?

Dinusha Gamage

Asked Jun 26, 2008, 7:40 PM EDT1 answer
Share
LinkedInX

Hi all....

Could you plz let me know that hw you get the current date in the datetimepicker? ( I need coding)

And also could you tell me how do you use the closeup method in datetimepicker?

Tnx in advance..

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Niradhip Chakraborty
    0

    Go to properties of datetimePicker and set format to short,It will give you
    Current date. To do it you dont require any coding.

    When the user clicks on the Down arrow, a DropDown event fires just before the drop-down calendar actually appears—that is, if the UpDown property is False (the default value). When the user selects a date in the drop-down calendar, a CloseUp event fires. These events aren't particularly useful, however, because you don't have much control over the calendar itself, apart from the colors it uses. When the user selects a date in the drop-down calendar, the Change event fires before the CloseUp event.

    0