Use the new database getDate function.