Send date to api when calendar date changes