setting and getting photo dates