Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Problem with Date' topicStudent Support Forum > General > Archives > "Problem with Date"

Help | Reply To Topic
Author Comment/Response
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`

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)
Do[date3 = {y, m + i, d};
AppendTo[t, DaysBetween[date1, date3]], {i, 3, 9, 3}];

URL: ,
Help | Reply To Topic