flexible-js-formatting


Fast, flexible JavaScript libraries for formatting and parsing numbers and dates

This project consists of two libraries that dynamically build a formatting function for number and date formatting. The date formatting is very similar to PHP's functionality; it also permits parsing dates. The number formatting is similar to MS Excel formatting. The technique of building a function to implement each formatting instruction leads to cleaner code that is richer in functionality and much faster than other popular libraries, as proven by benchmarks.

There is also a date chooser application (aka calendar form control) that uses the functionality provided by these libraries. And there's a JavaScript combo box and HTML input mask.

The code was originally developed and hosted on http://www.xaprb.com/ but is now being hosted here so all can contribute to it. It is now licensed under the MIT license, not the LGPL as it originally was.

All are invited to contribute; the original developer is very short on time, so if you want something done, please just do it yourself and don't wait for others. Anyone who requests commit access to the Subversion repository will be granted. Email [baron.schwartz] at [gmail.com] to request commit access.

Here are links to some blog posts about these functions:

Demo pages:

There's a github clone of the code here:

Project Information

Labels:
javascript date number formatting parsing library combobox datechooser inputmask calendar form control