Need date PHP code to output this;
2012-11-13T19:05:05.5270036-02:00
This has failled!
$endDateTime = date ( 'Y-m-j'.'T'.'H:i:s'.'.5270036-02:00', strtotime ($endDateTime));
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
just take a look at the documentation. the date-pattern you’re looking for seems to be:
Note the
Tneeds to be escaped with a\, otherwise it will be noticed as Timezone abbreviation. You also don’t need to hard-code the microseconds (useu) and the Tiezone (P).In addition, if you want to use this pattern, you should use
DateTime::formatinstead ofdatebecause the later one uses casts it’s parameter to anint, so the microseconds will always be0