Documentation

i18n

Internationalization, number and date formatting methods.

Methods
dateFormatDate converts a string in the default date format to a Date object
dateFormatStr converts a Date object to a string in the default date format
fullDateFormatDate converts a string in the default date-time format to a Date object
fullDateFormatStr converts a Date object to a string in the full-date format
intFormat converts a number into integer and formats according to the locale defaults.
longDateFormatDate converts a string in the long date format to a Date object
longDateFormatStr converts a Date object to a string in the long-date format
numberFormat formats a number according to the locale defaults
parseFormatDate converts a string in the parsing date format to a Date object
parseFormatStr converts a Date object to a string in the parsing format
parseTimeFormatDate converts a date object to a string in the parsing format with respect to time
parseTimeFormatStr converts a Date object to a string in the parsing format with respect to time value
priceFormat formats a number as a price string
setLocale sets the locale in use
timeFormatDate converts a string in the time format to a Date object
timeFormatStr converts a Date object to a string in the time format
Other
calendar the default locale months and days names
controls sets text labels for some elements of Webix components
dateFormat sets the default locale date format
decimalDelimiter a char which separates the decimal part in the float number. The default value is ”.”
decimalSize the number of decimal digits in the float number
fileSize sets abbreviations for file sizes from byte to exabyte
fullDateFormat sets the default locale date-time format
groupDelimiter a char which separates groups of digits. The default value is ”,”;
groupSize the number of digits in a group. The default value is 3
locales creates a new locale
longDateFormat sets the default locale the long-date format
parseFormat sets the default locale parsing date format. Initially it is "**%Y-%m-%d "%H:%i"**".
parseTimeFormat sets the default locale parsing time format. Initially it is **%H:%i**.
price sets the default locale price format
priceSettings sets the format of the price number
timeFormat sets the default locale time format
Back to top