I’m using the function
$data=date_default_timezone_set("Y-m-d");
and I’m getting the date like 0000-00-00 in my table. Can any one help me ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
date_default_timezone_setsets the default timezone and takes time zone identifier(e.g. “EST” or “EST5EDT”).After time zone is set you can use
datefunction to format datetime value.