Results 1 to 3 of 3

Thread: Calender options in VB?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Location
    England
    Posts
    270

    Calender options in VB?

    Hi,
    I have this program I'm writing that needs to print for instance what date it is a 100 days from now or 30 days from now. Is there a function in VB.NET that lets me do something like this?

    Thanks in advance for your time.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Calender options in VB?

    Code:
    Date.Today.AddDays(100)
    will give you a Date object that represents the date 100 days from now. See the documentation for the DateTime type for more information.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Location
    England
    Posts
    270

    Re: Calender options in VB?

    Thanks a bunch!

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