As has been pointed out,
Javascript is case sensitive, and date is not the same as Date, and utctime is not the same as UTCtime.
Code:
<html>
<head>
<title> Displaying Times and Dates</title>
</head>
<body>
<h1> curent date and time </h1>
<p>
<script type = "text/javascript">
var now= new Date(); // note Date has a capital D
var localtime=now.toDateString();
var UTCtime= now.toGMTString();
document.write("<b> Localtime:</b>"+ localtime+ "<BR>");
document.write("<b>UTC time: </b> " + UTCtime+ " </p>");
</script>
</body>
</html>
You seem not to be able to spell
langauge but in any case - one more time - <script language = "javascript"> is deprecated and incorrect.
There is no attribute "language" it has been deprecated for around 10 years.
The required attribute is "type" and the type="text/javascript"
Hence...
<script type="text/javascript"> is now the correct form