Title: Adding date code
Last modified: August 20, 2016

---

# Adding date code

 *  Resolved [GrannyGeek](https://wordpress.org/support/users/dirty-butter/)
 * (@dirty-butter)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/adding-date-code/)
 * I was using Simple Post Template, and one of the things I used constantly was
   being able to insert the date the post was published into the template with this
   code:
 * <?PHP echo date(“l”). ” – “.date(“m/j/y”); ?>
 * How can I accomplish this with Easy Content Template?
 * [http://wordpress.org/extend/plugins/easy-content-templates/](http://wordpress.org/extend/plugins/easy-content-templates/)

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

 *  Plugin Contributor [Japa Alekhin Llemos](https://wordpress.org/support/users/japaalekhinllemos/)
 * (@japaalekhinllemos)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/adding-date-code/#post-3163698)
 * Hi Dirty Butter,
 * Thank you for using Easy Content Templates! Unfortunately as of now, there is
   no way to do that, as Easy Content Templates does not support inserting php code
   in there. But since it’s Saturday, i’ll work on it and see what i can do to support
   it. That work for you?
 * Note: I’m not planning to supporting php code but maybe shortcodes you can insert
   on there. Be back in a few hours to update it
 *  Plugin Contributor [Japa Alekhin Llemos](https://wordpress.org/support/users/japaalekhinllemos/)
 * (@japaalekhinllemos)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/adding-date-code/#post-3163715)
 * Ok i’m back you can now use the shortcode [postdate]
 * To control the output format use the format parameter like so
    [postdate format
   =”M j, Y”]
 * View the format options [here](http://php.net/manual/en/function.date.php)
 *  Thread Starter [GrannyGeek](https://wordpress.org/support/users/dirty-butter/)
 * (@dirty-butter)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/adding-date-code/#post-3163719)
 * That worked perfectly!! Thank you for your speedy response! I’m impressed!

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

The topic ‘Adding date code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-content-templates.svg)
 * [Easy Content Templates](https://wordpress.org/plugins/easy-content-templates/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-content-templates/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-content-templates/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-content-templates/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-content-templates/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-content-templates/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [GrannyGeek](https://wordpress.org/support/users/dirty-butter/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/adding-date-code/#post-3163719)
 * Status: resolved