Parse Date by using the Date.parse(dateVariable) : parse : Date JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Date » parse »

 

Parse Date by using the Date.parse(dateVariable)

















<html>
<head>
<title>Parse Date</title>
</head>
<body>
<script language="JavaScript" type="text/javascript">
<!--

var myVar = prompt("Enter a future date: ")

var user_date = Date.parse(myVar);
document.write(user_date);
//-->
</script>
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Date
» parse