adsense


Showing posts with label VB SCRIPT TIMEVALUE FUNCTION. Show all posts
Showing posts with label VB SCRIPT TIMEVALUE FUNCTION. Show all posts

Sunday, 8 November 2015

VB SCRIPT TIMEVALUE FUNCTION PAGE 86

COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button




VB SCRIPT TIMEVALUE FUNCTION





TimeValue Function 

The TimeValue Function converts the given input string to a valid time. 
Syntax 
TimeValue(StringTime)  
Example 
<!DOCTYPE html> 
<html> 
<body> 
<script language="vbscript" type="text/vbscript"> 
  
document.write(TimeValue("20:30") & "<br />") 
document.write(TimeValue("5:15") & "<br />") 
document.write(TimeValue("2:30:58") & "<br />") 
 
</script> 
</body> 
</html> 
When you save it as .html and execute it in Internet Explorer, 
then the above script will produce the following result: 
8:30:00 PM 
5:15:00 AM 
2:30:58 AM