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

RE: [amibroker] Re: Indicator Help-



PureBytes Links

Trading Reference Links

Hello,

formatDateTime is RESERVED to be used in conjunction with DATETIME function ONLY
http://www.amibroker.com/f?datetime

So write:
Title= + "    Date/Time " + WriteVal(  DateTime(),formatDateTime); 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Dean Hodgins" <deanhodgins@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, April 22, 2004 6:35 PM
Subject: [amibroker] Date / Time Format


> 
> I have a title displayed on a chart that contains (in part) the 
> following code. Everything works fine except the time is displayed as 
> either "Invalid Date Time" or a value that's clearly incorrect
> 
> I thought the "formatDateTime" from the afl library would fix this 
> issue but not so. If I remove the "formatDateTime" I don't get the 
> error but 92900 instead of 9:29 and 142900 instead of 2:29 etc.
> 
> I must be missing some parameter here that can properly format this 
> variable.
> 
> 
> Title= + "    Time   " + WriteVal(TimeNum(),formatDateTime);
> 
> Any suggestions much appreciated.
> 
> Thanks & Regards,
> 
> 
> Dean H.
> 
> 
> 
> 
> 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 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

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