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 Danila, Today, 04:38 AM
    2 responses
    7 views
    0 likes
    Last Post Danila
    by Danila
     
    Started by sinpeople, Today, 04:38 AM
    0 responses
    7 views
    0 likes
    Last Post sinpeople  
    Started by kiffgj, Today, 04:23 AM
    0 responses
    6 views
    0 likes
    Last Post kiffgj
    by kiffgj
     
    Started by Leeroy_Jenkins, Today, 03:45 AM
    0 responses
    11 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by Realsmooth3, Yesterday, 09:10 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Marco  
    Working...
    X