creates message field when date is clicked, passes date through message