Re: a question about coding calendar dates

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu