Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Oct 2008
Posts: 7
Reputation: sarifah is an unknown quantity at this point 
Solved Threads: 0
sarifah sarifah is offline Offline
Newbie Poster

day problem

 
0
  #1
Oct 22nd, 2008
please help me.
urgent

i have one date in a txtBox1.what i want is, after i click the button, the other date will appear on txtBox2. The other date is the date after several days such as 7 days.
so, how or what the coding to enable the other date will appear.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 44
Reputation: K.Vanlalliana is an unknown quantity at this point 
Solved Threads: 3
K.Vanlalliana K.Vanlalliana is offline Offline
Light Poster

Re: day problem

 
0
  #2
Oct 22nd, 2008
Take the value of the date in Text1 and then add any number you want (Say7), format the result with any date format you like to display like- "dd-mmm-yyyy" and the display the result in Textbox2.

You can get value of Year, Month and Day form the formal date format like 2-Aug-2008.

If you dont know how to get date Value, ask in the forum again
I hope you can do this
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 7
Reputation: sarifah is an unknown quantity at this point 
Solved Threads: 0
sarifah sarifah is offline Offline
Newbie Poster

Re: day problem

 
0
  #3
Oct 22nd, 2008
please show me the coding with 'toggle plain text' to make more clear.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,110
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 128
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: day problem

 
0
  #4
Oct 22nd, 2008
can you post what you have tried so far .
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 42
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

Re: day problem

 
0
  #5
Oct 23rd, 2008
Use the DateAdd function
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 20
Reputation: rstkw is an unknown quantity at this point 
Solved Threads: 2
rstkw rstkw is offline Offline
Newbie Poster

Re: day problem

 
0
  #6
Oct 26th, 2008
I wrote this for someone else but it will work for you, except it adds a random number.
Attached Files
File Type: zip RandomDate.zip (1.7 KB, 2 views)
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 53
Reputation: smile4evr is an unknown quantity at this point 
Solved Threads: 2
smile4evr's Avatar
smile4evr smile4evr is offline Offline
Junior Poster in Training

Re: day problem

 
0
  #7
Oct 29th, 2008
is this solved???
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC