date modal works