Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged format



« Prev 1 Next »
A quick function that makes it easy to convert an integer into a number string with commas inserted.
0 109 posted 7 years ago by uberdragon
Generic function - Pass the context to the function for use with any field
0 109 posted 7 years ago by chetkloss
Javascript Basic Date Formatter
0 343 posted 8 years ago by samsonl
format numbers in javascript with group digits
0 164 posted 8 years ago by rg443
Thanks to http://www.mredkj.com/javascript/numberFormat.html#addcommas
0 76 posted 9 years ago by fengelz
Format a date into a string using several string variables. Usage: (new Date("6/6/2011")).format("%W, %B %d%o, %Y"); Result: Monday, June 6th, 2011
0 168 posted 9 years ago by wizard04
0 113 posted 10 years ago by housecor
converts date/time that sharepoint kicks out to m/d/y format.
0 104 posted 10 years ago by rumremix
Example: `var result = "Hello {0}! This is {1}.".format("world","foo bar");` Returns: `"Hello World! This is foo bar."`
2 146 posted 11 years ago by jasonseney
Adds commas to numbers. 1234567 becomes 1,234,567
1 155 posted 12 years ago by jdstraughan
I use this in addition to the number_format (http://snipplr.com/view/5945/javascript-numberformat--ported-from-php/) snippit in SWFUpload to display the size of files a user is preparing to upload.
0 176 posted 12 years ago by inkdeep
Trims leading and trailing spaces from a string value and returns the result as a new string.
1 164 posted 13 years ago by splorp
« Prev 1 Next »