Re: a question about coding calendar dates
- Posted by Lnettnay Dec 03, 2013
- 1351 views
Nothing personal _tom but I think you're making this a lot more complicated than it needs to be. All that is really needed is to use the add function in datetime.e
include std/datetime.e datetime start_date, end_date start_date = new(2013, 12, 3, 0, 0, 0) end_date = add(start_date, 56, DAYS) ? end_date
As always, input/output and program logic are left as an exercise for the reader. :D
Lonny