PHP date Function ISO 8601 Format String

ISO 8601 with difference from Greenwich time (UTC).

Examples:

  • 2017-10-26T17:08:04+00:00
  • 2017-10-26T07:07:15-10:00
  • 2017-10-26T13:08:33-04:00
<?php

date('c');