×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Marosi Dóra
Added: Oct 9, 2017 4:23 AM
Views: 5
Tags: no tags
  1. $monday = date('Y-m-d',time()+( 1+ ($weekOffset*7) - date('w'))*24*3600);
  2. $sunday = date('Y-m-d',time()+( 7+ ($weekOffset*7) - date('w'))*24*3600);