how to get only date in datetime in database using php code example Example: only date in php date('Y:m:d', strtotime($date))