today minus days in vb6 code example Example: vb.net get date minus one day Dim newdate = olddate.AddDays(-1)