@telerik/kendo-intl
Version:
A package exporting functions for date and number parsing and formatting
14 lines (13 loc) • 358 B
JavaScript
export default function dateNameType(formatLength) {
var nameType;
if (formatLength <= 3) {
nameType = "abbreviated";
} else if (formatLength === 4) {
nameType = "wide";
} else if (formatLength === 5) {
nameType = "narrow";
} else if (formatLength === 6) {
nameType = "short";
}
return nameType;
}