bankofalltrades
MIS
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<html xmlns="<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<script type="text/javascript">
function validate_required4(){
var f = document.getElementById('Call_Date').value;
var d = new Date(f);
var x = (isNaN(d))
if (x==false){
var d = new Date();
d.setDate(d.getDate());
var formattedDate = d.getMonth() + '/' + d.getDate() + '/' + d.getFullYear() + ' ' + d.getHours() + ':' + d.getMinutes();
var e = new Date(formattedDate);
var checkit = e > f;
alert(checkit);
}
if (x==true)
{alert("Please enter a valid date format mm/dd/yy");return false;}
}
</script>
<style type="text/css"></style>
</head>
<body>
<input type="text" id="Call_Date" name="Call_Date" />
<input type="button" value="validate date" onclick="validate_required4()" />
</body>
</html>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<script type="text/javascript">
function validate_required4(){
var f = document.getElementById('Call_Date').value;
var d = new Date(f);
var x = (isNaN(d))
if (x==false){
var d = new Date();
d.setDate(d.getDate());
var formattedDate = d.getMonth() + '/' + d.getDate() + '/' + d.getFullYear() + ' ' + d.getHours() + ':' + d.getMinutes();
var e = new Date(formattedDate);
var checkit = e > f;
alert(checkit);
}
if (x==true)
{alert("Please enter a valid date format mm/dd/yy");return false;}
}
</script>
<style type="text/css"></style>
</head>
<body>
<input type="text" id="Call_Date" name="Call_Date" />
<input type="button" value="validate date" onclick="validate_required4()" />
</body>
</html>