Tag : .NET, Ms SQL Server 2008, Web (ASP.NET), C#, VS 2008 (.NET 3.x)
Date :
2013-03-06 01:08:36
By :
hackerdemo
View :
987
Reply :
4
No. 1
Guest
Code (VB.NET)
Dim dif As Short
Dim sDate As Date = "2013-03-01"
Dim eDate As Date = "2013-03-05"
Dim result As Date
dif = DateDiff(DateInterval.Day, sDate, eDate)
For i As Short = 0 To dif
result = DateAdd(DateInterval.Day, i, sDate)
MessageBox.Show(result)
Next