I have a form has to (maskedbox1) and (maskedbox2)
if maskedbox1 I put date of today, I want (maskedbox2) show date after 30 days as defult
I will be thank you if you help me to do this
I use vb6
fa_hed
0
Newbie Poster
Recommended Answers
Jump to PostTo calculate after 30 days you can use DateAdd() function
Example
Draw two MaskEdit Controls and One Command Button
Private Sub Command1_Click() Dim FormatDate As String Dim DateAfter30Days As Date DateAfter30Days = CDate(MaskEdBox1.Text) DateAfter30Days = DateAdd("d", 30, DateAfter30Days) FormatDate = Format(DateAfter30Days, "dd/MM/yy") MaskEdBox2.Text = FormatDate …
All 4 Replies
selvaganapathy
31
Posting Pro
Jx_Man
987
Nearly a Senior Poster
Featured Poster
fa_hed
0
Newbie Poster
selvaganapathy
31
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.