Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adddays

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

    Adddays

    Hi,

    I have a date in format "20111101" returned from ToDay(Time[0]). I need to add several days to if. How ca I do it? I can use the the AddDays method?

    thanks

    #2
    Originally posted by guillembm View Post
    Hi,

    I have a date in format "20111101" returned from ToDay(Time[0]). I need to add several days to if. How ca I do it? I can use the the AddDays method?

    thanks
    Pretty much. You just have to AddDays before you use the ToDay() function.
    Code:
    int numDays = 5;
    whatever = ToDay(Time[0].AddDays(numDays));

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by carnitron, Today, 08:42 PM
    0 responses
    6 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    8 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,974 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Started by rhyminkevin, Today, 04:58 PM
    4 responses
    58 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Working...
    X