Adding days to a date

Adding days to a date

Postby hag » Tue Apr 30, 2013 11:18 pm

How do I add days to this date format 10/15/13 want to add 7 days. Make it 10/22/13. Tried 10/15/13+7 but keep getting an argument error. Help. Thanks in advance.
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Re: Adding days to a date

Postby ADutheil » Wed May 01, 2013 12:30 am

Following code should work:

Code: Select all  Expand view

SET DATE AMERICAN
dDate := cToD( "10/15/13" )
newDate := dDate + 7
 
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: Adding days to a date

Postby hag » Wed May 01, 2013 4:45 am

Thanks it was perfect.
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests