Answer the question
In order to leave comments, you need to log in
Why is time incorrectly parsed from an SXML node?
Hello. There is an xml file in which each element has a child in which the time is written in RFC822 format (for example, Tue, 10 Apr 16 11:16:59 +0000).
I am trying to translate this date in this format:
$date = date('Y-m-d', strtotime($item->pubDate->__toString()));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question