DateTime.parse("20090401 000100");
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Exporting Historical Data (Date Format Issue)
Collapse
X
-
Exporting Historical Data (Date Format Issue)
When I export my historical data, the date value is in this format:
C# cannot parse this through:20090401 000100
My question is, is there a way to edit the format in which it outputs the date? If not, do any of you know of a workaround to get the date string into the correct format?Code:Tags: None
-
zwentz,
Maybe there is some misunderstanding here. Exporting historical data exports a text file. Text files contain just numbers. Numbers are not DateTime objects as seen in C#.
If you want to create a DateTime out of those numbers you need to just create the object in a manner acceptable.
DateTime someVar = new DateTime(year, month, day, hour, minute, second)
You will need to parse the string yourself.Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
25 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
115 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
69 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
226 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
411 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|

Comment