getDate behavior