471,357 Members | 1,092 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,357 software developers and data experts.

DATEADD or DATEDIFF function

I need a function that will take today's date and add X days to it. It
should return the new date after the add.
Jul 21 '05 #1
3 3365
John Cosmas wrote:
I need a function that will take today's date and add X days to it. It
should return the new date after the add.


DateTime.Now.AddDays();

( Doesn't .Net rock ? )
Jul 21 '05 #2

"John Cosmas" <jo********@charter.net> schrieb im Newsbeitrag
news:fg***************@fe07.lga...
I need a function that will take today's date and add X days to it. It should
return the new date after the add.


In VFP you can add the desired number of days as integer to a given date value
dResult = Date() + 5
Please do not crosspost

-Stefan
--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------

Jul 21 '05 #3
code is under here:

function newdate(adddays as integer)
return date()+adddays
endfuction


"John Cosmas" <jo********@charter.net> 写入消息新闻
:fg***************@fe07.lga...
I need a function that will take today's date and add X days to it. It
should return the new date after the add.

Aug 11 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Abdul N K | last post: by
4 posts views Thread by Paolo | last post: by
4 posts views Thread by ey.markov | last post: by
4 posts views Thread by Drum2001 | last post: by
1 post views Thread by sravanbakhsh | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.