Updated funcrion read_date