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