Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Date calculation

  1. #1

    Thread Starter
    Addicted Member Alexandru_mbm's Avatar
    Join Date
    Jul 2007
    Location
    VBForums.com
    Posts
    157

    Resolved [RESOLVED] [2005] Date calculation

    Based on a given date, how would i determine the ending date?

    For example:

    The current date is 15/01/2008 (day, month, year), how would i get the current date + 24 months result ? (15/01/2010)

    Thanks...
    I'm still learning VB.NET
    Sorry for my bad english
    Thanks for your help

  2. #2
    Fanatic Member vbasicgirl's Avatar
    Join Date
    Jan 2004
    Location
    Manchester, UK
    Posts
    1,016

    Re: [2005] Date calculation

    Dim NewDate As Date = Date.Now.AddYears(2)

    Casey.

  3. #3

    Thread Starter
    Addicted Member Alexandru_mbm's Avatar
    Join Date
    Jul 2007
    Location
    VBForums.com
    Posts
    157

    Re: [2005] Date calculation

    Thanks alot Casey for your quick answer! Thanks!
    I'm still learning VB.NET
    Sorry for my bad english
    Thanks for your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width