How to format a DateTime MySql Field ?
Posted: Thu Jun 12, 2003 5:33 am
Hi,
After having fetched a TimeStamp field, I can perform some computations and display it with something like : date ( $format, $row[0] );
But I can't find how to do the same with a DateTime. Should I convert it before and how ?
I would like to avoid the workaround to select from the database both the value, and the Mysql formatted value.
Thanks for help.
After having fetched a TimeStamp field, I can perform some computations and display it with something like : date ( $format, $row[0] );
But I can't find how to do the same with a DateTime. Should I convert it before and how ?
I would like to avoid the workaround to select from the database both the value, and the Mysql formatted value.
Thanks for help.