CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 adding integer value to date

Print topic Send  topic

Author Message
Tauqeer
Posted: 04/13/2004, 4:25 AM

Hi,
I have a problem. i have field which contains no of days i.e. integer value and the another field is the date field.Now i want whenever user change the date field it add the no of days in the date and show in the other field.
Please tell me which function i used to add the date.
Thanks in advance.
DonB
Posted: 04/13/2004, 11:56 AM

Use the DateAdd() function:

tomorrow = DateAdd('d',1,Now)
a_year_ago = DateAdd('yyyy',-1,Now)

--
DonB

http://www.gotodon.com/ccbth


"Tauqeer" <Tauqeer@forum.codecharge> wrote in message
news:6407bce0e1091e@news.codecharge.com...
> Hi,
> I have a problem. i have field which contains no of days i.e. integer
value
> and the another field is the date field.Now i want whenever user change
the
> date field it add the no of days in the date and show in the other field.
> Please tell me which function i used to add the date.
> Thanks in advance.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

peterr


Posts: 5971
Posted: 04/13/2004, 12:31 PM

It look like you want to do this in real-time, meaning that the calculation would be done within the browser (client), which would require using JavaScript. I recommend finding some JavaScript function(s) that can add days to dates, for example:
http://www.google.com/search?q=javascript+add+days+date

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.