Reputation: 37
I'm trying to do this timestamp in php 2019-02-01T08:21:33+0000
.
date("Y-m-d")
What do i need to add to the function date in order to create this timestamp.
Upvotes: 2
Views: 49
Reputation: 3572
A look into the docu helps: https://www.php.net/manual/en/function.date.php
And the solution is:
date('c')
(with an additional colon)
Upvotes: 4