</div> <footer class="footer"> <div class="container"> <div class="panel panel-default"> <div class="panel-body"> © <?= date("Y") ?> </div> </div> </div> </footer> <script> $(function() { $("._time").each(function(i, e) { var date = new Date($(e).text()); $(e).text(date.toLocaleString()); }); $("._date").each(function(i, e) { var date = new Date($(e).text()); $(e).text(date.toLocaleDateString()); }); $("._time-only").each(function(i, e) { var date = new Date($(e).text()); $(e).text(date.toLocaleTimeString()); }); }); </script> </body> </html>