David Weng David Weng - 1 year ago 107
PHP Question

Remove time part of a timestamp

How can I remove time part of a timestamp?

So for example turn

which is the plain date timestamp.

Answer Source
strtotime(date("Y-m-d", 1310571061));

That should do it for you.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download