Title: Problem with the_time
Last modified: August 21, 2016

---

# Problem with the_time

 *  Resolved [aesquis](https://wordpress.org/support/users/aesquis/)
 * (@aesquis)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-the_time/)
 * Hello
 * We have a problem with the_time, when we use `<?php the_time('d/m/Y');?>` or 
   other format the page returns simply **d/m/Y** not the date
 * This is an exmple of our code
 *     ```
       /*** FORMA 2 - 01/08/2012 ***/?>
   
       <div class="entry">
   
        <span style="font-weight:bold;"><?php the_time('d/m/Y');?></span>
   
       	  <h2><?php the_title();?></h2>
        	 <?php //the_advanced_excerpt('length=10');
          ob_start();
          the_advanced_excerpt('length=8');
          $postOutput = preg_replace('/<img[^>]+./','', ob_get_contents());
          ob_end_clean();
          echo $postOutput;
   
        ?>
       ```
   
 * The result is:
 * d/m/Y
    PÁSATE AL FOAM Y AHORRA EN EL COSTE DEL LAVADO Y CUIDADO DE MANOS Proquimia
   amplía su gama de higiene personal VITA, … + INFO
 * Can some one help us?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Borko](https://wordpress.org/support/users/media-x/)
 * (@media-x)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-the_time/#post-3791372)
 * Try this:
    `<?php the_date('d/m/Y'); ?>`
 *  Thread Starter [aesquis](https://wordpress.org/support/users/aesquis/)
 * (@aesquis)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-the_time/#post-3791376)
 * Thanks for your answer,
 * The problem i think is with qtranslate plugin, finally I use
 *     ```
       <div class="entry">
   
        <span style="font-weight:bold;"><?php the_time('%d/%m/%y');?></span>
       ```
   
 * And it works for me
 * Any way I tryed your suggestion and doesn’t works for me.
 * Thanks for you support.
 *  Thread Starter [aesquis](https://wordpress.org/support/users/aesquis/)
 * (@aesquis)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-the_time/#post-3791379)
 * I mark this topic as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem with the_time’ is closed to new replies.

## Tags

 * [the_time](https://wordpress.org/support/topic-tag/the_time/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [aesquis](https://wordpress.org/support/users/aesquis/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/problem-with-the_time/#post-3791379)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
