Click to See Complete Forum and Search --> : Change system date & time


adcomp
July 13th, 2005, 11:28 AM
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

DSJ
July 13th, 2005, 01:59 PM
Use Add, AddDays, etc. methods of the Date Class.