Hello. When xml parsing, I get the following data:

На рынке жилья затишье Источник: Экономика и жизнь (московский выпуск) Дата опубликования: 25.5.2002 Вид материала: Статья 

It is necessary to make so that the number of the month in the date is displayed in a two-digit format (05/25/2002). I searched in the internet for a long time, but found only about changing the format of the system date. And I need to change the current (obtained from xml) date, or rather just change the month format.

    1 answer 1

     date("dmY",strtotime("25.5.2002")); 
    • Thank you) The only thing is that in strtotime I deduced not the date specifically indicated by hands, but the value of the variable itself, which is responsible for the output from the xml of the date. $ sDateArticle = date ("dmY", strtotime ($ sDateArticle)); - Nerox