.
.
...2018-01-30 10:51:54
DLE
..., 2018-01-30 10:51:54

Pull date from db table or?

Good afternoon, there is a parser with a closed code, I want to convert the output of its additional field with the release date of the film
. Now it outputs like this on January 25, 2018, “Twentieth Century Fox CIS”
I want to make it output like this on January 25, 2018 through the additional field {date_full }
I can’t figure out what to add so that the data from the additional field that is specified would be pulled, now they are displayed after parsing through premiere_rus,
tell me what to add

//Дата выхода
    if($xfieldsdata['premiere_rus']){

      $date_full = array(

            

      );

      $tpl->set( '{date_full}', date("Y-m", $row['premiere_rus']) );
      
    }else
      $tpl->set( '{date_full}', date("Y-m", $row['premiere_rus']) );

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OKyJIucT, 2018-01-30
@Pavlusha

Instead of
try like this

$tpl->set( '{date_full}', langdate("d F Y", strtotime($xfieldsdata['premiere_rus'])) );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question