Handling selecting a date and creating a calendar without a linked input