<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - adrianparr</title>
<link>http://snipplr.com/users/adrianparr/tags/format</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 08:44:29 GMT</pubDate>
<item>
<title>(ActionScript 3) AS3 Get formatted time from dirty timestamp string</title>
<link>http://snipplr.com/view/56330/as3-get-formatted-time-from-dirty-timestamp-string/</link>
<description><![CDATA[ <p>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 the format hrs:mins</p> ]]></description>
<pubDate>Fri, 08 Jul 2011 23:20:17 GMT</pubDate>
<guid>http://snipplr.com/view/56330/as3-get-formatted-time-from-dirty-timestamp-string/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Load and access JSON data example</title>
<link>http://snipplr.com/view/56283/as3-load-and-access-json-data-example/</link>
<description><![CDATA[ <p>For this to work you need the as3corelib classes from here ... https://github.com/mikechambers/as3corelib</p> ]]></description>
<pubDate>Fri, 08 Jul 2011 05:33:20 GMT</pubDate>
<guid>http://snipplr.com/view/56283/as3-load-and-access-json-data-example/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Simple digital clock</title>
<link>http://snipplr.com/view/56195/as3-simple-digital-clock/</link>
<description><![CDATA[ <p>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).</p> ]]></description>
<pubDate>Thu, 07 Jul 2011 01:48:01 GMT</pubDate>
<guid>http://snipplr.com/view/56195/as3-simple-digital-clock/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Round Decimal Places</title>
<link>http://snipplr.com/view/48892/as3-round-decimal-places/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 12 Feb 2011 06:10:59 GMT</pubDate>
<guid>http://snipplr.com/view/48892/as3-round-decimal-places/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Get the Current Date in the Format YYMMDD (Reverse format)</title>
<link>http://snipplr.com/view/35512/as3-get-the-current-date-in-the-format-yymmdd-reverse-format/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 04 Jun 2010 09:59:49 GMT</pubDate>
<guid>http://snipplr.com/view/35512/as3-get-the-current-date-in-the-format-yymmdd-reverse-format/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Format the Text of a TextArea Component</title>
<link>http://snipplr.com/view/34266/as3-format-the-text-of-a-textarea-component/</link>
<description><![CDATA[ <p>To style the text in a TextArea component, create a TextFormat object and pass it to the TextArea's setStyle method.</p> ]]></description>
<pubDate>Tue, 11 May 2010 14:38:12 GMT</pubDate>
<guid>http://snipplr.com/view/34266/as3-format-the-text-of-a-textarea-component/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Format a UK Postcode (eg. AA99 9AA)</title>
<link>http://snipplr.com/view/34123/as3-format-a-uk-postcode-eg-aa99-9aa/</link>
<description><![CDATA[ <p>This code removes all the spaces and then inserts a single space so that the there are only 3 characters on the right-hand side (the inward code).</p> ]]></description>
<pubDate>Mon, 10 May 2010 08:02:34 GMT</pubDate>
<guid>http://snipplr.com/view/34123/as3-format-a-uk-postcode-eg-aa99-9aa/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Format a UK Mobile Number (XXXXX XXXXXX)</title>
<link>http://snipplr.com/view/34024/as3-format-a-uk-mobile-number-xxxxx-xxxxxx/</link>
<description><![CDATA[ <p>This returns a string with a single space after the fifth character.
Useful for displaying a UK mobile number which is easy to read.</p> ]]></description>
<pubDate>Fri, 07 May 2010 11:15:23 GMT</pubDate>
<guid>http://snipplr.com/view/34024/as3-format-a-uk-mobile-number-xxxxx-xxxxxx/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Checks a String to see if it is a Valid Email Format</title>
<link>http://snipplr.com/view/33601/as3-checks-a-string-to-see-if-it-is-a-valid-email-format/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 29 Apr 2010 10:21:59 GMT</pubDate>
<guid>http://snipplr.com/view/33601/as3-checks-a-string-to-see-if-it-is-a-valid-email-format/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Checks and Returns Valid UK Postcode using Regular Expression</title>
<link>http://snipplr.com/view/32540/as3-checks-and-returns-valid-uk-postcode-using-regular-expression/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 21 Apr 2010 05:54:43 GMT</pubDate>
<guid>http://snipplr.com/view/32540/as3-checks-and-returns-valid-uk-postcode-using-regular-expression/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Loading and Using an External CSS File</title>
<link>http://snipplr.com/view/32108/as3-loading-and-using-an-external-css-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 16 Apr 2010 03:55:29 GMT</pubDate>
<guid>http://snipplr.com/view/32108/as3-loading-and-using-an-external-css-file/</guid>
</item>
<item>
<title>(ActionScript 3) Format a Number to a String - With decimals and thousands separator</title>
<link>http://snipplr.com/view/27081/format-a-number-to-a-string--with-decimals-and-thousands-separator/</link>
<description><![CDATA[ <p>Format a number so it is more humanly readable. It allows for setting the number of decimal places (inc. adding 0000s to the end) and separating thousands with a comma.

Example usage:

trace(numberFormat(1234.695, 2, true, false)); 
// Output: 1,234.70

trace(numberFormat(16000000, 0, false, false)); 
// Output: 16,000,000</p> ]]></description>
<pubDate>Tue, 26 Jan 2010 06:25:12 GMT</pubDate>
<guid>http://snipplr.com/view/27081/format-a-number-to-a-string--with-decimals-and-thousands-separator/</guid>
</item>
</channel>
</rss>