DateValue Function In VB.NET
What is DateValue Function?
Explanation
DateValue Function
DateValue Function in Visual Basic.net 2008 returns an date value containing the date information as a string, with the
time set to the midnight.
Syntax:
DateValue(Date)
Example:
Module Module1
Sub Main()
Console.WriteLine("Date information as a String is::"
& DateValue("5/10/2010 12:00:01 AM"))
Console.ReadLine()
End Sub
End Module
Result:
5/10/2010
In the above DateValue Function example, the date information alone is displayed as a String using the
DateValue function.