I've just started working with PHP, and one of the first things I want to do is add a timestamp to my article template in Dreamweaver, so that each article I post automatically has the post date. How would one go about doing this?

Member Avatar

IN php you can use:

date("Y-m-d H:i:s"); //for datetime


time(); //for unix timestamp
commented: Awesome. Thanks! +0