hey all,
I would like to know if there is a php built-in function that grabs a datetime field from a MySQL table and outputs JUST the date { i.e - 2006-07-30 } without the time value. Thanks in advance.
As far as taking a MySQL datetime field and returning just the date, you can either use PHP's date() and strtotime() functions or use MySQL's builtin date() function.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.