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 625 posted 10 years ago by uberdragon
Generic function - Pass the context to the function for use with any field
0 643 posted 11 years ago by chetkloss
Javascript Basic Date Formatter
0 1474 posted 11 years ago by samsonl
format numbers in javascript with group digits
0 1010 posted 11 years ago by rg443
Thanks to http://www.mredkj.com/javascript/numberFormat.html#addcommas
0 495 posted 12 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 806 posted 12 years ago by wizard04
0 649 posted 13 years ago by housecor
converts date/time that sharepoint kicks out to m/d/y format.
0 630 posted 13 years ago by rumremix
Example: `var result = "Hello {0}! This is {1}.".format("world","foo bar");` Returns: `"Hello World! This is foo bar."`
2 857 posted 15 years ago by jasonseney
Adds commas to numbers. 1234567 becomes 1,234,567
1 796 posted 15 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 3133 posted 15 years ago by inkdeep
Trims leading and trailing spaces from a string value and returns the result as a new string.
1 778 posted 17 years ago by splorp
« Prev 1 Next »