I have some problems converting some values into a user defined format.
The code:
Print("Date1: " + ToDay(Time[0]).ToString()); Print("Date2: " + ToDay(Time[0]).ToString("yyyy-MM-dd")); Print("Open: " + Open[0]); Print("High: " + High[0]); Print("Low: " + Low[0]); Print("Close: " + Close[0]); Print("Volume: " + Volume[0]);
Date1: 20120127
Date2: yyyy-MM-dd
Open: 1314,75
High: 1319,25
Low: 1307
Close: 1312,75
Volume: 1730153
Here my problem: I would like to have the date (as a string) in format: "YYYY-MM-DD" and all the the values with a "." instead of "," as seperator.
Can anyone please provide some code snippets to me?
Thanks in advance!
Knoppers
Comment