Advertisement
krot

ISO 8601 week numbers convert date

Jul 27th, 2018
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.10 KB | None | 0 0
  1. date("W", strtotime($date));
  2. echo date("Y-m-d", strtotime("2018W01"));
  3.  
  4. strtotime('1/1/2018 + 1 weeks');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement