how to set date in php

35

<?php
$str = 'Tue Dec 15 2009';
$timestamp = strtotime($str);
echo $timestamp;
//output: 1260831600
?>

Comments

Submit
0 Comments