vb date yesterday code example Example: vb date yesterday DateTime.Now.AddDays(-1).ToString("dd.MM.yyyy")