Append date to string : Date Calculation « Date Time « JavaScript DHTML






Append date to string

   


<html>
<head>
<title></title>
<script type="text/javascript">
   var dt = Date();

   var msg = 'Today is ' + dt;
   document.write(msg);
</script>
</head>
<body>
</body>
</html>

   
    
    
  








Related examples in the same category

1.Calculate the days between two dates
2.Date Object Calculations
3.Get your timezone
4.Putting a Time Stamp on a Page