Producing W3C Datetime Format with Timezone in Java

W3C Datetime (also known as ISO 8601) is a standard machine readable way of formatting dates. In its most specific form, dates can be printed with time and time zone in this format:


For example:


It is not as easy to produce dates in this format in Java as it should be. I needed to format dates like this for creating an XML Sitemap file.


Graphing the performance of sub-domains in Google Analytics

My currency conversion website has a subdomain for each language.  It supports over 40 languages.  The entire domain is tracked in a single Google Analytics account.    I wanted to know which subdomains were performing best and which were performing worst, and how that was changing over time. (more…)