To get the current date in VB.NET you should use DateTime.Now Property: ‘ Get the current date and time in VB.NET Dim currentDate As DateTime = DateTime.Now Related TutorialsHow to apply CSS style in the Label control from code-behind in ASP.NET in VB.NET How to preserve member variables for an ASP.NET page in VB.NET How to store custom objects in a View state using VB.NET How to programmatically set the TextBox value and get the TextBox value in ASP.NET in VB.NET How to transfer information between pages in ASP.NET using a query string in VB.NET.