Pana,
Sure. At least in theory you can.
Doing it with a photo might be a bit of a problem. You have to have identifiable stars in the photo and the angle between the horizon and star might be inaccurate. If you get lucky and have two planets, say Saturn and Jupiter, in the photo you can measure the angle between them, look at identifiable stars in the background and probably get the date down to a month or two maybe less. It depends on just how accurately you can measure the angles between the bodies in the photo and whether it is an accurate depiction (undistorted) of the sky when it was taken.
Having two planets in the photo is probably to most accurate situation. They will line up in the configuration in the photo quite often - from once every few years to once every 12 years. But when they line up in that configuration it isn't always in the same place on the celectial sphere - the stars in the background will not be the same. So that's the kicker on fixing the right year and month...the alignment of the planets plus the starry background.