Bonus reading material: [wikipedia article](http://en.wikipedia.org/wiki/ISO_8601) and [obligatory XKCD](https://xkcd.com/1179/).  A very similar format is the [RFC 3339](http://tools.ietf.org/html/rfc3339).