get a date string