date calculation in VB.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anuthiga
    New Member
    • Oct 2008
    • 1

    date calculation in VB.net

    hello

    i want to calculate a date 16 months later from today
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    So use TimeSpans, or the .AddMonths method of the DateTime you want to add to.

    Comment

    • SvenV
      New Member
      • Oct 2008
      • 50

      #3
      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

      Working...