added get_datestrings
improved get_B_from_A