Image with geolocation and date-time stamp

I am doing a project, the requirement is a user visit a project location click some pics send it to the server. The main thing is that the image must have geolocation and date-time stamp. I want to know how to retrieve these data from an image.