Generating a correctly formatted xsd:dateTime using the Unix date command

> date -u  "+%Y-%m-%dT%H:%M:%SZ"
2006-08-17T06:28:58Z
For reference: W3C XML Schema dateTime format.