by Brandon (46 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sun 13th May 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
What was yesterday's date? what is tomorrows date? Use this to find out.
'put two command buttons on your form.
'call one cmdTomorrow and one cmdYesterday
'copy this code into the controls.
Private Sub cmdYesterday_Click()
Dim Yesterday As Variant
'print yesterdays date
Yesterday = DateAdd("d", -1, Date)
Form1.Print Yesterday
End Sub
Private Sub Tomorrow_Click ()
'print tomorrow's date
Dim Tomorrow As Variant
Tomorrow = DateAdd("d",1,Date)
Form1.Print Tomorrow
End Sub
No comments have been posted about What was yesterday's date? what is tomorrows date? Use this to find out.. Why not be the first to post a comment about What was yesterday's date? what is tomorrows date? Use this to find out..