CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2000
    Location
    Dorado, P.R.
    Posts
    221

    Change system date & time

    Hi;

    How can i change system date & time. I can do this in vb6 with

    Date = cdate("07/13/2005")


    And another question, how can i take 30 days to a date. In vb6 i can do it like this

    dim Fecha as date
    Fecha = date - 30


    This way's does not work in .Net.

    Please any help

  2. #2
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868

    Re: Change system date & time

    Use Add, AddDays, etc. methods of the Date Class.

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

Featured