today = new Date()
var header = (customDateString(today))
header + ""
This may help you @bob
<script> var today = new Date(), header = today.getFullYear(); document.write(header); </script>