TimeSerial Function in VB.NET
How to use the TimeSerial function in VB.NET?
Explanation
Timeserial Function
TimeSerial Time Function in Visual Basic.net 2008 returns an date value with the specified hour, minute, second
with the date information is set to January 1 of year 1.
Syntax:
Timeserial(hour, minute, second)
Example:
Module Module1
Sub Main()
Console.WriteLine("Time displayed using Timeserial() is:: "
& TimeSerial(4, 30, 23))
Console.ReadLine()
End Sub
End Module
Result:
Time displayed using Timeserial() is :: 4:30:23 AM
In the above example, the time is displayed by specifying the hour, minute, seconds
using the Timeserial time function.