Skip to content

Sprintf.js

agershun edited this page Mar 17, 2015 · 1 revision

Formatting with Sprintf.js

You can use standard sprintf() function for format dates and numbers:

    alasql.fn.sprintf = sprintf;
    var res = alasql('SELECT sprintf("%b",123)');

See full example in jsFiddle.

Clone this wiki locally