toFixed
adds a leading zero to a number, if it's less than 10
number|string toFixed(number|string num);
number|string | a number that the method is applied to |
| number|string | the formatted number |
Example
webix.Date.toFixed(7); // -> "07"
webix.Date.toFixed(17); // -> 17
webix.Date.toFixed("7"); // -> "07"
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.