Thursday, July 19, 2007

PHP: Date and Time manipulation

In PHP, we can convert timestamp to readable format by using date() function.
Ex: date('y, m, d', timestamp)

To convert a readable format to timestampe using: strtotime();
Ex: $start_time = strtotime($row->date.' '.$row->start_time);