calculate sunday date from user define date

[b]Calculate first sunday date from user supplied date

if i passsed 1 mar 2014 date to function,it will calculate first sunday date 2 mar 2014[/b]

[php]<?php
echo date(‘d/m/Y’, strtotime(‘next Sunday’, strtotime(‘2014-03-01’)));
?>[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service