Jump to content

get data from sunday till now


jwk811

Recommended Posts

Depends on the date format of the database column.  This should give the standard mysql date format for last Sunday:

 

$last_sunday = date('Y-m-d', strtotime('last sunday'));

 

However, if today is Sunday then it will obviously give you the previous Sunday.  Not sure if that's what you want.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.