PHOTO synthetics process do not takes place at night.. As the WORD itself describes that photo means light, therefore it's a simple process that takes place in the PRESENCE of light..
At night tree takes oxygen and carbon dioxide is RELEASED outside which is just opposite than that of photosynthesis process