PureBytes Links
Trading Reference Links
|
<FONT face=Arial
color=#0000ff size=2>I wrote myself a little fn for general
conversion...
<FONT face=Arial
color=#0000ff size=2>
<FONT face=Arial
color=#0000ff size=2>function DateNumToStr(DtNum){ DayNm =
round(frac(DtNum/100)*100); MthNm =
round(frac(DtNum/10000)*100); YrNm =
int(DtNum/10000)+1900; return
NumToStr(DayNm,1.0)+"/"+NumToStr(MthNm,1.0)+"/"+NumToStr(YrNm,1.0,False);}
<FONT
color=#0000ff>__<SPAN
class=156164623-06052004>___
<SPAN
class=156164623-06052004>peterj
From: Herman van den Bergen
[mailto:psytek@xxxxxxxx] Sent: Friday, 7 May 2004 7:54
aTo: AmiBroker YahooGroupsSubject: [amibroker] How to
convert DateNum to date string?
Would anybody know how to convert a single DateNum() i.e.
1030404, to a formatted date string like "2004-04-03"?We
have:
WriteVal( DateTime(), formatDateTime
);but this doesn't work when i use: WriteVal(
1030404, formatDateTime );
Many thanks for any help you can give.
herman
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 Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|