How to get tomorrows date in VB.NET

2 Answers

0 votes
Imports System

Public Class Program
	Public Shared Sub Main()
        Dim tomorrow As Date = Date.Today.AddDays(1)
 
        Console.WriteLine(tomorrow)
    End Sub
End Class


' run:
'
' 04/10/2025 00:00:00
' 

 



answered Sep 18, 2018 by avibootz
edited Apr 9, 2025 by avibootz
0 votes
Imports System

Public Class Program
	Public Shared Sub Main()
        Dim today As DateTime = DateTime.Now
		
        Dim tomorrow As DateTime = today.AddDays(1)
		
        Console.WriteLine("Tomorrow's date is: " & tomorrow.ToString("yyyy-MM-dd"))
    End Sub
End Class



' run:
'
' Tomorrow's date is: 2025-04-10
' 

 



answered Apr 9, 2025 by avibootz

Related questions

...