Second Function in VB.NET

How to use the second Function in VB.NET?

Explanation

Second Function

Second() Time Function in Visual Basic.net 2008 returns an integer value between 0 to 59, that represents the second of the current minute.
Syntax:

Second(Expression)
Example:

Module Module1
Sub Main()
Console.WriteLine("Current second of the minute is
:: " & Second(Now))
Console.ReadLine()
End Sub
End Module

In the above example, the current second of the minute is represented in an integer value by using this time function.

Visual Basic Tutorial


Ask Questions

Ask Question