edited getDate