Welcome To Snipplr


Everyone's Recent Snippets Tagged format



« Prev 1 2 3 4
Show the output of a query in a more readable vertical format
0 2248 posted 9 years ago by rm1984
Alternativas para formato de datos en sql server
0 1906 posted 10 years ago by systemergon
Nice script for formatting dates in a batch file without having the system locale settings impact your format
0 4215 posted 12 years ago by kidmizere
This technical tip shows how each TIFF frame can be converted to JPEG and then these images to PDF file using Aspose.Pdf for Java. Aspose.Pdf for Java is very well capable of dealing with TIFF images and can easily transform them into PDF format. How...
0 3746 posted 12 years ago by johansonkatherine
Todays dates are shown as hh:mm, dates from yesterday and earlier as dd mmm. This can be useful, since recent dates are showing more details
0 4030 posted 12 years ago by lakkie
A quick function that makes it easy to convert an integer into a number string with commas inserted.
0 1813 posted 12 years ago by uberdragon
Breaks up an address (in this case returned by Advanced Custom Fields Location plugin) into it's components. Additionally, sorts a multidimensional array of locations alphabetically by state. This works for basic addresses assuming that address is in...
1 3330 posted 13 years ago by devowhippit
Generic function - Pass the context to the function for use with any field
0 1959 posted 13 years ago by chetkloss
quick way to get column headers formatted
0 1561 posted 13 years ago by lolrenx
Use: echo format_size(filesize("fichier")); Example result: 13,37 Ko
0 2587 posted 13 years ago by zhyar
Javascript Basic Date Formatter
0 3947 posted 13 years ago by samsonl
format numbers in javascript with group digits
0 2638 posted 13 years ago by rg443
this is a snippet from a parsing piece of code I had to do for class, basically I had to grab employee names, numbers, paycodes, hours worked, etc. and organize it. In order to align the columns I ended up using some code like this
0 1914 posted 14 years ago by nickstanish
0 1970 posted 14 years ago by focal55
Reference of simple operations with dates, such as formatting and arithmetic.
0 1710 posted 14 years ago by denakitan
A custom class for formatting dates, similar to PHP bult-in function "date". The class also has some other date utils functions, like: dayOfYear, numberOfDaysInMonth, etc..
1 2547 posted 14 years ago by TimoZachi
Thanks to http://www.mredkj.com/javascript/numberFormat.html#addcommas
0 1562 posted 14 years ago by fengelz
Example call: $menuName = sleek_get_theme_menu_name('footer-menu')
0 2296 posted 14 years ago by Huskie
Switches 'dd mm yyyy' to 'yyyy-mm-dd'
0 1648 posted 14 years ago by nebojsac
I was working on a project where the timestamp string I was getting from the backend developer was pretty dirty in the way it was formatted. For example, it looked like "/Date(1310127448000+0100)/". I needed to get a nicely formatted time from it in...
0 2255 posted 14 years ago by adrianparr
For this to work you need the as3corelib classes from here ... https://github.com/mikechambers/as3corelib
0 5313 posted 14 years ago by adrianparr
This example expects there to be a dynamic textfield on the stage with the instance name of 'myTextFieldOnStage'. Remember to embed the fonts (Numerals and Colon).
0 2506 posted 14 years ago by adrianparr
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 2099 posted 15 years ago by wizard04
First command shows connected drives, may not be mounted. Second command formats the drive.
0 1603 posted 15 years ago by loungerdork
Create a textfield and add a format
0 1523 posted 15 years ago by marzsman
This function shows how you can format a double value to a string with a given precision.
0 1896 posted 15 years ago by bits
The date format is dd/mm/YYYY but you can replace slashes by anything else.
0 1704 posted 15 years ago by ptiswitz
Excel macro to copy values from formated cells. For example: If you have a sheet that has huge numbers in millions for example 1,312,323 and you apply a format to the cell such that only 1.3 is displayed, if you want to copy 1.3 and put it in a da...
1 2131 posted 15 years ago by abhisood
« Prev 1 2 3 4