Datetime help on asp.net

Get help on web editors (Frontpage, Dreamweaver) and web languages (HTML, ASP, PHP).
Post Reply
CesarePlay
Registered User
Posts: 10628
Joined: 26 Mar 2007, 02:00
Location: In the river of thoughts
Contact:

Datetime help on asp.net

Post by CesarePlay »

I have a problem I been trying to solve.

When a user selects a date from the calendar the textbox needs to display this date plus one year.

I have tried using addyear but it is not working properly. I tried google but not quite finding what I am looking for. Can anyone help?

I am using asp.net and the textbox name I have to use is input_txtDate1.Text.
Image
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Re: Datetime help on asp.net

Post by RuadRauFlessa »

You are refering to an action which needs to happen client-side. This you would have to do with JavaScript.
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
CesarePlay
Registered User
Posts: 10628
Joined: 26 Mar 2007, 02:00
Location: In the river of thoughts
Contact:

Re: Datetime help on asp.net

Post by CesarePlay »

How does it work? Also I forgot to mention it must open happen once not everytime they open the page.
Image
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Re: Datetime help on asp.net

Post by RuadRauFlessa »

I am not too hot on JS might want someone else to give you a couple of pointers.
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
CesarePlay
Registered User
Posts: 10628
Joined: 26 Mar 2007, 02:00
Location: In the river of thoughts
Contact:

Re: Datetime help on asp.net

Post by CesarePlay »

Ok. I got it to add year year to the date. Problem is it changes the date of current saved data which it must not do.
Image
Post Reply