This class will be used to custom the SQL Datetime format in your style. This may very useful for web developers to make their work easy. Class (Store as “sql.date.class.php“): <?php class FormatDate { public function Date($SQLdate, $format) { $maketime = strtotime($SQLdate); return date($format,$maketime); } } $dateobj = new FormatDate; ?> Implementation (Store as “index.php“): [...]



Posted in
Tags: