Given that we're gaining a few different date formatting routines around the codebase, we may want to consider adopting an existing library to simplify this, e.g. http://momentjs.com/