connecting date picker