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 Postselvaganapathy was given great code...
also you can try use DateSerial()
DateSerial(Year,Month,Day)
This will add 20 days from 5 July 2008.Private Sub Form_Load() MsgBox DateSerial(2008, 7, 5 + 20) End Sub
Result : 7/25/2008
This will count the 50 days from 1 July 2008.
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.