Skip to content
Advertisement

Tag: string.format

JavaScript equivalent to printf/String.Format

I’m looking for a good JavaScript equivalent of the C/PHP printf() or for C#/Java programmers, String.Format() (IFormatProvider for .NET). My basic requirement is a thousand separator format for numbers for now, but something that handles lots of combinations (including dates) would be good. I realize Microsoft’s Ajax library provides a version of String.Format(), but we don’t want the entire overhead

Advertisement