| Author |
Comment/Response |
Thibault
|
02/11/13 10:21am
I have a date and I need to have the date in 1 and 2 weeks, 1,2,3,6 and 9 months.
For 1 week and two weeks there are no problem, I used DaysPlus with 7 and 14:
<< Miscellaneous`Calendar`
t={};
Do[AppendTo[t,DaysPlus[{y,m,d},i]],{i,7,14}]
For the other dates I can't use DaysPlus because I don't know how many days there are in the next month (the date change every day).
I did this but it's work only if my first date is between January and March and I don't know how do for the months between May and December.
(I need to do a difference betwen date too)
In[]:=
y=2012;m=2;d=17;
y1=2020;m1=12;d1=10;
date1={y1,m1,d1}
Do[date3 = {y, m + i, d};
AppendTo[t, DaysBetween[date1, date3]], {i, 3, 9, 3}];
URL: , |
|