Title: Format file_mtime
Last modified: August 30, 2016

---

# Format file_mtime

 *  [erikture](https://wordpress.org/support/users/erikture/)
 * (@erikture)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/format-file_mtime/)
 * I would like to show the file_mtime in my templates because if you upload your
   files with FTP it is the last modified date of the actual file that is of importance.
 * But that attribute is just a number not a formated date.
    Is there any way to
   get that attribute formated as YYYY-MM-DD?
 * Is it possible to insert some php code in the template that does the formatting
   if there is no %file_mtime_formatted% variant of file_mtime?
 * I have managed to format it through inserting javascript and jquery in the tempalte
   but that is not ideal.
 * [https://wordpress.org/plugins/wp-filebase/](https://wordpress.org/plugins/wp-filebase/)

The topic ‘Format file_mtime’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-filebase_ffff6e.svg)
 * [WP-Filebase Download Manager](https://wordpress.org/plugins/wp-filebase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-filebase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-filebase/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-filebase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-filebase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-filebase/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [erikture](https://wordpress.org/support/users/erikture/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/format-file_mtime/)
 * Status: not resolved