VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



What was yesterday's date? what is tomorrows date? Use this to find out.

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.

Rate 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

Download this snippet    Add to My Saved Code

What was yesterday's date? what is tomorrows date? Use this to find out. Comments

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..

Post your comment

Subject:
Message:
0/1000 characters