Manak Ram Seervi
Manak Ram Seervi

Reputation: 41

Month selectable date time picker control

Is there any way in C# forms to show only months and years selectable when we dropdown the date time picker control? I do not want the days to be selectable.

I do not want to use numeric up down. for selecting month and year.

Upvotes: 0

Views: 721

Answers (2)

Pradeep D G
Pradeep D G

Reputation: 55

try this link using jquery plugin:

http://xdsoft.net/jqplugins/datetimepicker/

    $j('dDatetime').datetimepicker({
        format: 'Y/m/d A g:i',
        formatTime: 'A g:i',
    });

Upvotes: 0

Mohammad Arshad Alam
Mohammad Arshad Alam

Reputation: 9862

you can do this with CustomFormat:

dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
dateTimePicker1.CustomFormat = "MM/yyyy";

Upvotes: 1

Related Questions