Here it's Friday, 14th July 2017.If its so then why the following code shows wrong date?
$curr_date = date('Y-m-d', time()); //output='2017-07-13'
What am i missing here?Why does the following function shows one day behind the current date?Also i want the variable to hold date exactly in 'Y-m-d' format only.
Please help me with some code snippets.Thanks.