Page 1 of 1

previous sunday date from current date

Posted: Tue Sep 19, 2006 1:21 am
by kalpna
Hi Evryone
Can any one give me an idea to get the previous mentioned day's(eg,.Sunday) date from current date.
I found a function 'PreviousWeekdayFromDate', but, i didn't understand the functionality.
Example: todays date is 19-09-2006 i need the last sundays date which is, 17-09-2006

Thanks in advance
kalpna

Posted: Tue Sep 19, 2006 8:24 am
by keshav0307
PreviousWeekdayFromDate(CurrentDate(),'Sunday') will give you the result