Tests for formatDate() and slight change to formatDate() interface.
Merge pull request #16 from leftclickben/master

Tests for formatDate() and slight change to formatDate() interface.