DATEADD or DATEDIFF function

  • Thread starter Thread starter John Cosmas
  • Start date Start date
J

John Cosmas

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.
 
John said:
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 ? )
 
John Cosmas said:
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
 
code is under here:

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