Viewing 1 replies (of 1 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    The best option is to use a custom code, that is persistent during udpates.

    Try adding this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!

    add_filter( 'asl_results', 'asl_custom_date_results', 10, 1 );  
    function asl_custom_date_results( $results ) {
      $date_format = get_option( 'date_format' );
      
      foreach ($results as $k=>&$r) {
        $r->date = date_i18n( $date_format, strtotime( $r->date ) );  
      }
      
      return $results;
    }

    This will change the date format to the WP global format. You can enter a custom format by changing the $date_format variable.

    Best regards,
    Ernes M.

Viewing 1 replies (of 1 total)
  • The topic ‘How can i change Format Date?’ is closed to new replies.