Editor form datepicker with month and year only

Editor form datepicker with month and year only

jehwajehwa Posts: 6Questions: 3Answers: 0

How can I set the option of a datatable editor form with type datetime so that the datepicker have month and year only as shown in the below screen capture? thx

OR

Answers

  • jehwajehwa Posts: 6Questions: 3Answers: 0

    <style>
    .editor-datetime table{
    display: none;
    }
    </style>

  • jehwajehwa Posts: 6Questions: 3Answers: 0
    edited February 2021
        editor.field('reg_date').input().on('focus', function (a) {
    
            var month = $('.editor-datetime-month').val();
            var year = $('.editor-datetime-year').val();
    
  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin

    I think your CSS is the only way to do this - I hadn't considered that ability before to be honest! We do part detection on the format for whether to show the time parts, but not the date part.

    Regards,
    Allan

This discussion has been closed.