Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Missing daysMin option in formatDate function #710

Open
basepack opened this issue Dec 11, 2017 · 0 comments
Open

Missing daysMin option in formatDate function #710

basepack opened this issue Dec 11, 2017 · 0 comments

Comments

@basepack
Copy link

Hi,

I wanted to show a date like this: Mo 12/11/2017. However that seems not possible when I inspect the
formatDate() function.

This row is never to be called:

var dates = $.fn.datetimepicker.dates = {
/**/
daysMin:     ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'],
/**/   
}

daysShort on the other hand is possible:

formatDate:       function (date, format, language, type, timezone) {
/**/   
          D:    dates[language].daysShort[date.getUTCDay()],
/**/   
}

Maybe it is an idea to add daysMin to the options in formatDate()?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant