我需要能够以这种格式创建日期:
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
请注意,它与ISO 8601 date
不完全相同。
现在我只能以这种格式创建日期:
2015-05-07 13:28:01+0300
为此,我使用模式:
Y-m-d H:i:sO
但是如何将T
纳入日期格式?