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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs