Hi,
I assume you want to put the day/date in your website.
If your site runs on PHP do this:
PHP will get the server time and add 5 hours to it.<?php echo date('jS F Y H:i:s', strtotime("+5 hours")); ?>
JavaScript:
JavaScript will only show the visitors local day and time.<script type="text/javascript">
<!--
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
document.write(month + "/" + day + "/" + year)
//-->
</script>
Hope that helps!![]()
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks