Forum Moderators: coopster
echo (date("Y-m-d",$row_getProject['EndDate'])) but it returns an error that reads: Notice: A non well formed numeric value encountered in C:\htdocs\admin\EditProjects.php on line 109
1969-12-31
and it adds the date of 1969-12-31 for some reason. Does anyone know how I might be able to solve this issue?
Whoisgregg, I took your advise and used the strtotime(). The only small problem I encountered was that it was still returning the December 31st 1969 date if the date was empty so I placed the function inside of an if statement that checked to see if it was empty first.
if (isset($row_getProject['BeginDate'])){ echo (date("Y-m-d", strtotime($row_getProject['BeginDate'])));} Works well.
Thanks again
-Acton