简体   繁体   中英

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.

you can do this with CustomFormat :

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

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',
    });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM