Online Shopping : Computers : Programming : Languages : PHP : Common Problems : Files

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 13 people (77%) answered Yes
Recently 4 of 6 people (67%) answered Yes

Entry

How can I convert the last modified time for a file to a MySQL datetime?
How can I convert the last modified time for a file to a MySQL datetime?

May 18th, 2000 19:38
Nathan Wallace, Meir Kriheli


Try this:

    date('Y-m-d H:i:s',filemtime(<filename>)