how to set timestamp to localdatetime in php mysql code example Example: php timestamp to date <?php echo date('m/d/Y H:i:s', 1541843467); ?>