Page 1 of 1

Find the date in 3 working days

Posted: 10 Aug 2012, 09:08
by outhwaik
Hi all,

I need to include in a report I am writing the date as it will be in 3 working days. I was hoping for a simple function to get the day of the week, in which case I'd be able to specify how many days to add, but it looks as though Sage doesn't include this functionality. Anyone able to help me out with this?

Thanks in advance for any help :)

outhwaik

Re: Find the date in 3 working days

Posted: 10 Aug 2012, 10:16
by outhwaik
Managed to figure it out - for anyone who is interested my expression was as follows:

DateTimeToFormattedString(now(), "dddd")="Monday" or
DateTimeToFormattedString(now(), "dddd") = "Tuesday" or
DateTimeToFormattedString(now(), "dddd") = "Wednesday"
?
CreateDateTime(yearfromdate(now()), monthfromdate(now()),dayfromdate(now())+3)
:
CreateDateTime(yearfromdate(now()), monthfromdate(now()),dayfromdate(now())+5)