If 01/01/2006 is the format used by Windows then change the format value to 1 per Help for ParamData.
 
Bill
----- Original Message -----
From: Ken Close
Sent: Friday, October 06, 2006 12:41 PM
Subject: [amibroker] Date Display in Title - Really Puzzling

I set a variable with ParamDate, then later want to display that date in the Title statement.  I get an incorrect date displayed even though the variable operates correctly and displays correctly as a number.
 
So, the code has
 

BuyDate = ParamDate("BuyDate","01/03/2006",0);

Say I set 8/18/2006 in the Parameter box, then later in the code this partial segment in a Title statement
 
.....+ " BuyDate = " + WriteVal(BuyDate,1.0)
 
produces this when applied:    BuyDate = 1060818    ............. which is the correct number but not formatted how I would like it.
 
Change the code to
BuyDateDisp = DateTimeToStr(BuyDate);
and then
..... + " BuyDate = " + BuyDateDisp
 
produces this when applied:   BuyDate = 8/2/1073 12:41:00 AM
 
What is going on and how can I get the formatted date display I want in the Title???
 
Thanks for any insights.
 
Ken


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.407 / Virus Database: 268.13.0/464 - Release Date: 10/5/2006
__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html






SPONSORED LINKS
Software support Small business finance Business finance online
Business finance training Business finance course

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to