Save dates as Date type instead of String