Title: Control date format
Last modified: August 20, 2016

---

# Control date format

 *  [philingle](https://wordpress.org/support/users/philingle/)
 * (@philingle)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/control-date-format/)
 * Hi
 * I have built a site using a theme from Themeforest. I have tried the theme creator
   for help but he doesnt know the answer.
 * If you look on this page
    [http://nicolasbonato.com/?cat=7](http://nicolasbonato.com/?cat=7)
 * I have the date format in the main column of the page correct, but in the sidebar
   it is formatted in english.
 * can anyone tell how I would correct this so that in the sidebar it is showing
   in french as well.
 * Thanks for any help
 * Phil

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

 *  [paulruescher](https://wordpress.org/support/users/paulruescher/)
 * (@paulruescher)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/control-date-format/#post-2393665)
 * Are you using a plugin or a widget or something called Custom Popular Posts?
 *  Thread Starter [philingle](https://wordpress.org/support/users/philingle/)
 * (@philingle)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/control-date-format/#post-2393815)
 * There is a Custom Category Posts widget that comes with the theme that I am using.
 * I have found this code in the theme files
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * Is it in there somewhere?
 *  Thread Starter [philingle](https://wordpress.org/support/users/philingle/)
 * (@philingle)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/control-date-format/#post-2394065)
 * Hi
 * Sorry, didnt realise I couldnt paste code. it is here now
 * [http://pastebin.com/pacGnATS](http://pastebin.com/pacGnATS)
 * Cheers
 *  Thread Starter [philingle](https://wordpress.org/support/users/philingle/)
 * (@philingle)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/control-date-format/#post-2394066)
 * I have narrowed it down a bit. In some places the theme uses the following code
 * `<span class="post_detail"><?php echo get_the_time('F j, Y', get_the_ID()); ?
   >`
 * and then elsewhere it uses the code
 *     ```
       $return_html.= '<div class="post_detail">'.date('F j Y', strtotime($post->post_date));
       ```
   
 * I think that I need to modify the format of the second bit of code to make it
   come up properly in French. but dont really know what I need to do. Any advice
   happily accepted

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

The topic ‘Control date format’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [philingle](https://wordpress.org/support/users/philingle/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/control-date-format/#post-2394066)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
