Calculate Last Day of Week

Hi,

Does anyone know how to calculate last day of week in Ruby?

Date.today gives todays date
Date.tomorrow gives tomorrow's date

What abt end of week ?

Thanks,
Pratik

Date.today.end_of_week

Thank you very much Bala :slight_smile:

Regards,
Pratik