VBScript Minute Function
Advertisements
Minute
The Minute Function returns a number between 0 and 59 that represents the Minute of the hour for the specified time stamp.
Syntax
Minute(time)
Example
<!DOCTYPE html> <html> <body> <script language="vbscript" type="text/vbscript"> document.write("Line 1: " & Minute("3:13:45 PM") & "<br />") document.write("Line 2: " & Minute("23:43:45") & "<br />") document.write("Line 3: " & Minute("2:20 PM") & "<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:
Line 1: 13 Line 2: 43 Line 3: 20
vbscript_date.htm
Advertisements