created a setValue method to handle passing text value through to the calendar