Help with dates (week)

Hi, I need to know if a week has passed or if it’s next week

Based on a rang

For example:

31/08…06/09 past

07/09…13/09 current

14/09…20/09 future

Thanks.

Hello

  1. Get the week number for the date passed and current date.

  2. Now check if date passed week number < current date week

then it is passed

else if both same then

it is current week

else if greater then

it is future week

thanks