|
Ken,
I overlooked that you used 0 as second argument of the
ParamDate function. In such case (as you can see from the guide),
ParamDate returns DATENUM format which is YYYMMDD), while
formatDateTime expects DateTime (compressed date+time) hence you got
error.
Depending on how would you like to use it you have got three
choices:
a) specify 1 as "format" parameter in ParamDate - then it will
give you STRING immediatelly (without any conversion)
ParamDate("BuyDate","01/03/2006",1);
- this will give you string value at once
b) (using 4.85 beta new function DateTimeConvert) you can
convert from DateNum to DateTime format
BuyDate = ParamDate("BuyDate","01/03/2006",0);
Title = WriteVal( DateTimeConvert( 2, BuyDate ),
formatDateTime ); c) using StrFormat
BuyDate =
ParamDate("BuyDate","01/03/2006",0);
Title = "BuyDate" +
StrFormat("%.0f/%.0f/%4.0f", ( BuyDate /
100 ) % 100, BuyDate % 100, 1900 + ( BuyDate / 10000 ) );
Best regards, Tomasz Janeczko amibroker.com __._,_.___ 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
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 __,_._,___ |
- [amibroker] Date Display in Title - Really Puzzling Ken Close
- [amibroker] Re: Date Display in Title - Really Puzzli... Fred
- Re: [amibroker] Date Display in Title - Really Puzzli... wavemechanic
- Re: [amibroker] Date Display in Title - Really Puzzli... Tomasz Janeczko
- RE: [amibroker] Date Display in Title - Really Pu... Ken Close
- [amibroker] Re: Date Display in Title - Reall... Fred
- Re: [amibroker] Date Display in Title - Reall... Tomasz Janeczko
