Returns a localized date field name based on specific dateFieldName options.
dateFieldName({ type: 'day' }); //returns 'day';
dateFieldName({ type: 'day', nameType: 'wide' }); //returns 'day';
dateFieldName({ type: 'month', nameType: 'short' }); //returns 'mo.';
dateFieldName({ type: 'month', nameType: 'wide' }); //returns 'month';
|
|
options
|
DateFieldNameOptions
|
Detailed configuration for the desired date field name.
|
localeId?
|
string
|
The optional locale id. If not specified, the "en" locale id is used.
|
|
|
string
|
The localized date field name from the current locale based on the option.
|
|