Title: Data-time formating in plugins
Last modified: August 20, 2016

---

# Data-time formating in plugins

 *  [ceviz ms](https://wordpress.org/support/users/minasmiroglu/)
 * (@minasmiroglu)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/data-time-formating-in-plugins/)
 * Hello there,
    There is a plugin called show-posts-shortcode. It is the simplest
   one I found which works with my theme. This plugin lists the posts with the specified
   category. It is simple, I use `[showposts category="11" num="4" order="DESC" 
   orderby="date"]` and it does its job. I want to add dates next to post names 
   🙂 `<a href ="{$permalink}" title="{$post_to_show->post_title}">{$post_to_show-
   >post_title}</a>` this is the code where I need to add it. So I added `{$post_to_show-
   >post_date}` next to it, which worked but with a full date and time format. So
   i googled it and found `. mysql2date('j M Y', $post->post_date) .` but it did
   not work. My programming (scripting?) is not enough to figure it out:) Can you
   please give me clue how to implement this?

The topic ‘Data-time formating in plugins’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [ceviz ms](https://wordpress.org/support/users/minasmiroglu/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/data-time-formating-in-plugins/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
