[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Converting dates.



PureBytes Links

Trading Reference Links

Tomasz,

I wanted to predict a date inthe future when an event would happen 
and to do that I needed to add a specified number of days to my 
trigger date.  I thought that there may have been a way to do it in 
AFL but letting me know that there isn't is fine.  VBScript did the 
job just great.

Thanks



John

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> John,
> 
> Frankly I don't see the reason why you would need to add numbers
> to datenum().
> You can perform calculations on dates using JScript or VBScript
> Date object. See JScript/VBScript language references on
> microsoft scripting site http://msdn.microsoft.com/scripting
> 
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "John Rowlinson" <john@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Monday, March 24, 2003 6:50 PM
> Subject: [amibroker] Converting dates.
> 
> 
> > Hi,
> >
> > If I have a date value from datenum() and add say 15 then how do I
> > get the date back from the number? - ie if I take 1/1/03 and add 
15
> > then I want to get 1/16/03 back.
> >
> > Thanks
> >
> >
> >
> > John
> >
> >
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> > Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/
> >
> >
> >


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Your own Online Store Selling our Overstock.
http://us.click.yahoo.com/rZll0B/4ftFAA/46VHAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/