Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Have Code Snippet for date time?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Have Code Snippet for date time?

    Does anyone have a code snippet (C#?) that will correctly give you NinjaTrader's date time for a given C# date time?

    For example...

    Datetime.Now.ToString("yyyyMMdd hhmmss") does not give us the correct date time for NinjaTrader to import minute data.

    If the date and time is, 2/5/2009 12:45:00 PM, then it should map to 20090205 134500

    #2
    Do I understand correctly, you want to implement a time shift?
    Something like DateTime.Now.AddHours(1).ToString() ?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    127 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    85 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    86 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X