Second Function


Second Function

Class

Microsoft.VisualBasic.DateAndTime

Syntax

     Dim result As Integer = Second(timeValue) 


timeValue (required; Date)

The source date from which to extract the second

Description

The Second function returns a value from 0 to 59, representing the second of the supplied date or time.

Usage at a Glance

With Option Strict set to On, the source value must first be converted to a Date data type. You can use the CDate function for this purpose. The IsDate function can also be used to confirm that the source expression is a valid date.

See Also

DatePart Function, Hour Function, Minute Function




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net