David Weng David Weng - 4 months ago 9
PHP Question

Remove time part of a timestamp

How can I remove time part of a timestamp?

So for example turn

1310571061
to
1310565600
which is the plain date timestamp.

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

That should do it for you.