if you mean dtDateTestPlusOne is the next day
then
dtDateTestPlusOne = dtDateTest + (24*60*60) ;
24 hr a day * 60 min an hour* 60 sec in a min
phoenix:
if you mean dtDateTestPlusOne is the next day
if you mean dtDateTestPlusOne is the next day
then
dtDateTestPlusOne = dtDateTest + (24*60*60) ;
24 hr a day * 60 min an hour* 60 sec in a minThanks, it works.
Pierre2006

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
How to add a day at a datetime variable ?
My code :
datetime dtDateTest = D'2004.01.01 00:00';
datetime dtDateTestPlusOne;
dtDateTestPlusOne = dtDateTest + ??????? ;
Thanks,
Pierre2006