0

I need to be able to create a date in this format:

2015-05-07T13:28:01+0300
        //^           ^ Here it is different from ISO 8601, which has a colon there
        //| Don't know how to get this 'T' into my current format

Note that it is not exactly the same as: ISO 8601 date.

Right now I'm only able to create dates in this format:

2015-05-07 13:28:01+0300

For this I use the pattern:

Y-m-d H:i:sO

But how can I get the T into the date format?

Rizier123
  • 57,440
  • 16
  • 89
  • 140
iwazovsky
  • 1,869
  • 3
  • 19
  • 33

0 Answers0