TimeSerial Function in VB.NET

How to use the TimeSerial function in VB.NET?


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.

Timeserial(hour, minute, second)

Module Module1
Sub Main()
Console.WriteLine("Time displayed using Timeserial() is:: "
& TimeSerial(4, 30, 23))
End Sub
End Module

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.

Visual Basic Tutorial

Ask Questions

Ask Question