Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Date.prototype.toJSDate = function() {return ((this.getMonth() + 1 < 10) ? "0" + (this.getMonth() + 1) : (this.getMonth() + 1)) + "/" + ((this.getDate() < 10) ? "0" + this.getDate() : this.getDate()) + "/" + this.getFullYear() ;};
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<title>title test</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<script type="text/javascript">
Date.prototype.toJSDate = function() {return ((this.getMonth() + 1 < 10) ? "0" + (this.getMonth() + 1) : (this.getMonth() + 1)) + "/" + ((this.getDate() < 10) ? "0" + this.getDate() : this.getDate()) + "/" + String(this.getFullYear()).substr(2, 2) ;};
function convertDate(obj) {
var dte = new Date(obj.value);
obj.value = dte.toJSDate();
}
</script>
<style type="text/css"></style>
</head>
<body>
<input type="text" id="txt" />
<input type="button" value="convert date" onclick="convertDate(document.getElementById('txt'))" />
</body>
</html>