Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
date calculation in VB.net
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
anuthiga
New Member
Join Date:
Oct 2008
Posts:
1
#1
date calculation in VB.net
Oct 17 '08, 02:27 PM
hello
i want to calculate a date 16 months later from today
Curtis Rutland
Recognized Expert
Specialist
Join Date:
Apr 2008
Posts:
3264
#2
Oct 17 '08, 02:31 PM
So use TimeSpans, or the .AddMonths method of the DateTime you want to add to.
Comment
Post
Cancel
SvenV
New Member
Join Date:
Oct 2008
Posts:
50
#3
Oct 17 '08, 02:33 PM
There is a method for this:
System.DateTime .AddMonths
In C# that would be:
DateTime yourDate = DateTime.AddMon ths(DateTime.No w)
I think you can translate that to VB
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment