0

new AirDatepicker('.datepicker', {
    inline: false,
    position: 'bottom right',
    autoClose: true,
    dateFormat(date) {
        return date.toLocaleString('ru', {
            day: '2-digit',
            month: 'long',            
        });
    } 
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
 <input readonly class="datepicker"></input>

1 ответ 1

0

нашел ответ на свой же вопрос. может кому понадобится https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat

надо добавить в опции

weekday: 'long'

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.