[amibroker] Re: [Code] Array of Date in "yyyymmdd" format, then array converted to String

 

So this is how I Solved it:

eb = Nz(EndValue( BarIndex()    ));
bb = Nz(BeginValue( BarIndex()    ))  ;


MonStr = NumToStr(monarray[bb],1.0, separator=false, roundAndPad = False);
monStrLen = strlen(MonStr);
montwodigit = writeIf(monStrLen == 1, ("0"+MonStr), MonStr);
printf("montwodigit" + montwodigit+ "\n");

DayStr = NumToStr(Dayarray[bb],1.0, separator=false, roundAndPad = False);
DayStrLen = strlen(DayStr);
Daytwodigit = writeIf(DayStrLen == 1, ("0"+DayStr), DayStr);
printf("Daytwodigit" + Daytwodigit+ "\n");



Begin_yyyymmdd  = NumToStr(Yeararray[bb],1.0, separator=false, roundAndPad = False)+
montwodigit+
Daytwodigit;

Same way its done for End_yyyymmdd

__._,_.___

Posted by: meanomalist@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___


EmoticonEmoticon