adsense


Sunday, 8 November 2015

VB SCRIPT YEAR FUNCTION PAGE 74

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




VB SCRIPT YEAR FUNCTION





Year Function 


The Year function returns an integer that represents a year of the specified date. 
Syntax 
Year(date)  
Example 
<!DOCTYPE html> 
<html> 
<body> 
<script language="vbscript" type="text/vbscript"> 
 
 document.write(Year("2013-06-30")) 
</script> 
</body> 
</html> 
When you save it as .html and execute it in Internet Explorer, 
then the above script will produce the following result: 
2013 


No comments: