Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Minute FunctionThis standard VB function returns the minute component (0-59) of a date-time value. SyntaxReturnsIf the expression evaluates to a date-time or time value, the minute component of that value; otherwise 0. UsageTime can be of any type, including strings, and the Minute function attempts to convert the input value to a date-time value. For Minute to function without an error, the values passed to it must be in some form that can be interpreted as a time or date-time value. Thus, 13:26, or 1:45:12 PM returns valid results, but 1326 returns a 0. The return value is a variant of vartype 2 (integer). If the value of time is null, a variant of vartype 1 (Null) is returned. ExampleThis example extracts just the time (hour, minute, and second) from a file's last modification date and time. Sub Button_Click See AlsoDate Statement |
Siebel VB Language Reference |