how to get a date