Make the date adapter work in the opposite direction too