Page 1 of 1

PreviousWeekdayFromDate

Posted: Tue Aug 30, 2011 7:56 am
by Devendrudu
Hi,

i am using date and time functions in transformer 8.5 as below one

PreviousWeekdayFromDate(CurrentDate(),"tuesday") that is current date is 30-08-2011.

but i am getting the output result is 2011-08-30 it's not giving Previous

Weekday.

Note: my doubt is it's giving same date what i entered in input.

Please let me know.

Re: PreviousWeekdayFromDate

Posted: Tue Aug 30, 2011 11:12 am
by MarkB
Devendrudu wrote:Note: my doubt is it's giving same date what i entered in input.
That's probably because the 30th IS a Tuesday, and I believe PreviousWeekdayFromDate includes the source date. If you had specified MON (or Monday), it would have returned the 29th.