954,559 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

day problem

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.

sarifah
Newbie Poster
9 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

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

K.Vanlalliana
Light Poster
44 posts since Jul 2008
Reputation Points: 10
Solved Threads: 4
 

please show me the coding with 'toggle plain text' to make more clear.

sarifah
Newbie Poster
9 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

can you post what you have tried so far .

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

Use the DateAdd function

jireh
Posting Whiz
316 posts since Jul 2007
Reputation Points: 11
Solved Threads: 49
 

I wrote this for someone else but it will work for you, except it adds a random number.

Attachments RandomDate.zip (1.66KB)
rstkw
Newbie Poster
20 posts since Oct 2008
Reputation Points: 10
Solved Threads: 2
 

is this solved???

smile4evr
Junior Poster in Training
53 posts since Aug 2008
Reputation Points: 10
Solved Threads: 2
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You