About 52 results
Open links in new tab
  1. JavaScript equivalent to printf/String.Format - Stack Overflow

    Mar 4, 2009 · 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 …

  2. c# - Use of String.Format in JavaScript? - Stack Overflow

    Mar 29, 2010 · string format = String.Format("Hi {0}",name); just for JavaScript of course and one person gave me a simple answer it was not like a jQuery plugin or anything, but I think you …

  3. How do I put variables inside javascript strings? - Stack Overflow

    8 I wrote a function which solves the problem precisely. First argument is the string that wanted to be parameterized. You should put your variables in this string like this format "%s1, %s2, ...

  4. How do I format a date in JavaScript? - Stack Overflow

    If you’re looking how to parse a string to a Date object, see Parsing a string to a date in JavaScript.

  5. JavaScript equivalent of Python's format () function?

    If you (like me) only need the limited subset of python's format function for simple string replacement, and performance is not critical, a very simple 29-line pure-Javascript function …

  6. String Format com JavaScript - Stack Overflow em Português

    Aug 28, 2015 · Visando o String.Format do C#, que é bem fácil de ser utilizado, busquei algo parecido para ser utilizado em meus códigos JavaScript. Encontrei algumas implementações …

  7. Format JavaScript date as yyyy-mm-dd - Stack Overflow

    This Stack Overflow thread provides solutions for formatting JavaScript dates as yyyy-mm-dd.

  8. Is there a C# String.Format() equivalent in JavaScript?

    Jan 5, 2016 · C# has the really powerful String.Format() for replacing elements like {0}with parameters. Does JavaScript have an equivalent?

  9. Get String in YYYYMMDD format from JS date object?

    Jun 18, 2010 · I'm trying to use JS to turn a date object into a string in YYYYMMDD format. Is there an easier way than concatenating Date.getYear(), Date.getMonth(), and Date.getDay()?

  10. Format a JavaScript string using placeholders and an object of ...

    Format a JavaScript string using placeholders and an object of substitutions? Asked 14 years, 3 months ago Modified 2 years, 9 months ago Viewed 231k times