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 pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    11 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    16 views
    0 likes
    Last Post AaronKoRn  
    Working...
    X