Re-use getDate method