Groups | Blog | Home
all groups > dotnet general > june 2005 >

dotnet general : DATEADD or DATEDIFF function


jabailo NO[at]SPAM texeme.com
6/14/2005 8:43:06 PM
[quoted text, click to view]

DateTime.Now.AddDays();

John Cosmas
6/14/2005 10:29:14 PM
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.

Stefan Wuebbe
6/15/2005 7:39:58 AM

"John Cosmas" <johncosmas@charter.net> schrieb im Newsbeitrag
news:fgNre.690$mD6.431@fe07.lga...
[quoted text, click to view]

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
-----------------------------------------------------------
newboy
8/11/2005 12:00:00 AM
code is under here:

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




"John Cosmas" <johncosmas@charter.net> дÈëÏûÏ¢ÐÂÎÅ
:fgNre.690$mD6.431@fe07.lga...
[quoted text, click to view]

AddThis Social Bookmark Button