toTimeString()

Only time part of the Date object can be converted to string by using toTimeString
Date.toTimeString();
Here is sample code
<script type="text/javascript"> 
var dt= new Date();
document.write(dt + "<br><br>");
document.write(dt.toTimeString());
</script>
The output is here

Your Rating





More on JavaScript Date & Time

Post your comments , suggestion , error , requirements etc here .




HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer