Make the date snippet work in the right contexts