using Date type instead of String